🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: bit.listserv.rexxlist
1 messages
1 total messages Started by Jeff Boyd Wed, 20 May 1992 15:15
Re: Command Line Parsing
#171
Author: Jeff Boyd
Date: Wed, 20 May 1992 15:15
19 lines
1044 bytes
>             Regress FN FT FM ( opt1 opt2 opt3 ... opt12
>
>These values were easily retrieved with the following statement:
>
>             Arg FN FT FM . ( OPT.1 OPT.2 OPT.3 ... OPT.12


Hi ... I'm not comfortable with "Arg FN FT FM . (", since it allows the
user to enter an invalid call.  I'd lean toward something like:

     parse arg ArgString
     parse var ArgString FileName '(' Options

and then testing "FileName" for validity (and too many tokens) before
moving on and testing "Options".


jeff
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads