home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
getopt.zip
/
ReadMe.1st
< prev
next >
Wrap
Text File
|
1994-05-11
|
3KB
|
63 lines
GetOpt for REXX
Copyright (c) 1994 Lawrence R Buchanan
This archive was created out of a need to process option switches in
REXX programs. As I was familiar with the getopt() function from UNIX,
I decided to pattern my REXX implementation after it. (Though it
possibly more closely resembles the getopts command from the UNIX Korn
shell.)
Contents of this distribution:
getopt.cmd REXX source for a skeleton program utilizing the
GetOpt/SetupArg subroutines. Use this as a starting
point for any programs you wish to write using the
GetOpt option parser.
getopt.3r man page for the GetOpt subroutine.
setuparg.3r man page for the SetupArg subroutine.
demo.cmd Demonstration of calling GetOpt from main program
body.
demo2.cmd Demonstration of calling GetOpt from a subroutine.
demo3.cmd Demonstration calling GetOpt from a subroutine using
PROCEDURE EXPOSE.
rpr.cmd Simple implementation in REXX of the UNIX pr command.
rpr.1 man page for the rpr command.
This program is free software; you are free to do whatever you want
with it. My only request is that if you use these routines in code
that you distribute, that you do not remove the copyright messages that
appear in the headers of the GetOpt and SetupArg subroutines. This is
not a requirement; I am only asking that you give credit where credit
is due.
GetOpt for REXX is supplied as is. The author disclaims all
warranties, expressed or implied, including, without limitation, the
warranties of merchantability and of fitness for any purpose. The
author assumes no liability for damages, direct or consequential, which
may result from the use of GetOpt for REXX.
This code has been tested under OS/2 (REXX/2) and OS/400 (REXX/400). If
you have access to other platforms on which REXX is available, (Amiga,
RS/6000, and Mainframe come to mind), I would like to know what other
platforms GetOpt for REXX works on.
While I have tried to the best of my abilities to test and debug this
code, there is always the possibility that something slipped through. If
you discover any bugs or anomalies, please notify me at one of the
following:
CompuServe 71510,1214
Fido Netmail Lawrence Buchanan, 1:109/347
(Pete Norloff's OS/2 Shareware BBS)
Fido OS2REXX I check in 3-4 times a week.
Conference
Internet 71510.1214@compuserve.com
NewsLink Rod Buchanan
TalkLink MA00069