From: David P. <pa...@rc...> - 2002-04-25 07:16:49
|
Joe Piolunek wrote: > Would there be a problem if an option identifier ('-dev') is required before > the device name? I don't think there is a compelling reason to use one, but > having it could result in a little less confusion on the user's part, and the > result of using it in the command string would be more certain. In any case, > it would not need to be used unless wanting to connect to a device other than > the default, if one exists. Hi, Joe. Since you don't otherwise have any parameters that don't start with hyphens, my preference would be to not require a "-dev" switch, to be consistent with the other applications, which in most cases assume that a parameter that doesn't start with a hyphen is a device name. Feel free to look in apps/cmdline/ptal-*.c to see how I did it. Search for the string "ptalDeviceOpen" and then work your way back from there. You'll find that I did each one a little differently, since I did them at different times. David |