| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | getopt() |
Hi CHARLES. 05-Aug-03 06:32:00, CHARLES ANGELICH wrote to JASEN BETTS CA> 1237c905323d c_echo CA> Hello Jasen - CA>>> I haven't used getopt() for some time now but I have often CA>>> wondered what the reasons are that most methods of parsing the CA>>> command line want to use switch characters such as "/" or "-"? JB>> usually to separate switches (ie commands) from filenames or JB>> other literals CA> With argc available I don't see the need for the switch chars. CA> Order of entry should be sufficient. for trivial tools it often is. try designing something that can do,everything the dos copy command can do (well the things it's documented as being capable of) without it using any switches... JB>> but seriously the f specifies an optional archive filename while JB>> un-swittched filenames on the command-line specify files fo put JB>> in the archive or extract. CA> The order of entry should be sufficient I would think if valid CA> filenames required more than one character prior to the "." CA> character. no, because the archive filename is optional... you don't need to name it if you're satisfied with the default... (/dev/rmt0 is the (first) auto-Rewinding Magnetic Tape drive...) with AWK you can put the program on the command-line instead of using -f -=> Bye <=- ---* Origin: Black Holes were created when God divided by zero! (3:640/1042) SEEN-BY: 633/267 270 @PATH: 640/1042 531 954 774/605 123/500 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.