Script commandl ine arguments

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Script commandl ine arguments

Brad Watson
Is there a way to get the command line arguments from
a gst script from with in smalltalk ?

Regards,



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Script commandl ine arguments

S11001001
Brad Watson wrote:
> Is there a way to get the command line arguments from
> a gst script from with in smalltalk ?

Assuming you know how to tell gst to stop processing arguments itself
and pass them to your program, send #arguments to Smalltalk.

If you are running the development version (post-2.2), look in
kernel/Getopt.st, or see the documentation for class Getopt and
SystemDictionary category 'command-line', for getopt-style processing.

--
Stephen Compall
http://scompall.nocandysw.com/blog


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk