TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: All
from: Charles Angelich
date: 2003-08-02 21:00:00
subject: getopt()

I haven't used getopt() for some time now but I have often
wondered what the reasons are that most methods of parsing the
command line want to use switch characters such as "/" or "-"? 

I've written code that parses from the _end_ of the CLI from
whitespace to whitespace with no switch characters and noticed
no inherent weaknesses (for my purposes).

One reason I am asking is that using DOS and Linux plus third
party binaries it is sometimes difficult to remember what the
switch character even is. I'm getting old? 

The requirement of some binaries to use "-f" preceding
filenames seems a bit unnecessary and I do often forget. TAR
and GAWK come to mind. 

Anyone? 

>
>        ,                          ,
>      o/      Charles.Angelich      \o       ,
>       __o/
>     / >          USA, MI           < \   __\__
 

___ * ATP/16bit 2.31 * 
... DOS the Ghost in the Machine! http://www.undercoverdesign.com/dosghost/

--- Maximus/2 3.01
* Origin: COMM Port OS/2 juge.com 204.89.247.1 (281) 980-9671 (1:106/2000)
SEEN-BY: 633/267 270
@PATH: 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™.