62 "usage: portwrite [-p device] [-v] string" "\n" 63 " or: portwrite --help|-h" "\n" 73 using namespace tfxx::cmdline;
74 static Declare options[]=
81 {
"p",arg_yes,
"/dev/ttyS0"},
88 cerr << usage_text << endl;
93 Commandline cmdline(iargc, argv, options);
96 if (cmdline.optset(0))
98 cerr << usage_text << endl;
99 cerr << help_text << endl;
130 opt.
device=cmdline.string_arg(2);
133 while (cmdline.extra())
135 std::string text=cmdline.next();
136 if (opt.
verbose) { cout << text << endl; }
#define PORTWRITE_VERSION