Copyright (C) 2000-2012 |
GNU Info (python2.1-tut.info)Argument PassingArgument Passing ---------------- When known to the interpreter, the script name and additional arguments thereafter are passed to the script in the variable `sys.argv', which is a list of strings. Its length is at least one; when no script and no arguments are given, `sys.argv[0]' is an empty string. When the script name is given as `'-'' (meaning standard input), `sys.argv[0]' is set to `'-''. When `-c' COMMAND is used, `sys.argv[0]' is set to `'-c''. Options found after `-c' COMMAND are not consumed by the Python interpreter's option processing but left in `sys.argv' for the command to handle. automatically generated by info2www version 1.2.2.9 |