Skip to content

Latest commit

 

History

History
README
------

= using the sys module =

  reference: https://docs.python.org/3/library/sys.html

* arguments.py
  how to count, and read commandline arguments

* arguments-programname.py
  determine the program/script name, only

* arguments-count.py
  count the number of arguments, only

= using the getopt module =

  reference: https://docs.python.org/3/library/getopt.html

* arguments-getopt.py
  how to count, and read commandline arguments

= using the argparse module =

  reference: https://docs.python.org/3/library/argparse.html

* arguments-argparse-basic.py
  basic usage of the argparse module

* arguments-argparse-description.py
  adding a description to the help message

* arguments-argparse-optional.py
  adding an optional argument

* arguments-argparse-optional2.py
  adding an optional argument plus value

= using the docopt module =

  reference: https://github.com/docopt/docopt

* arguments-docopt.py
  evaluating parameters in GNU style using docopt

* arguments-docopt-mixed.py
  evaluating parameters in both GNU and UNIX style using docopt

* fileinfo.py
  fileinfo example to use and evaluate commandline arguments

* ust.py
  calculates the tax for a given value