[Tutor] how to add arguments to a command line program

Alan Gauld alan.gauld at btinternet.com
Fri Sep 14 20:42:42 CEST 2007


"shawn bright" <nephish at gmail.com> wrote 

> i am sure i do it with sys args, but don't know how.
> 
> like
> 
> python run_my_script.py somevar
> 
> does this make sense ?
> 

Check my Talking to the User topic in my tutorial.
The second half talks about using command line arguments.


-- 
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld



More information about the Tutor mailing list