Skip to content

Instantly share code, notes, and snippets.

@von
Created April 30, 2011 01:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save von/949332 to your computer and use it in GitHub Desktop.
Save von/949332 to your computer and use it in GitHub Desktop.
$ cat p.conf
[Defaults]
option1 = Hello World!
option2 = Have a nice day.
$ p.py --option1 "Hi there"
Namespace(conf_file=None, option1='Hi there', option2='some other default')
$ p.py --conf_file p.conf
Namespace(conf_file=None, option1='Hello World!', option2='Have a nice day.')
$ p.py --conf_file p.conf --option1="Hi there world."
Namespace(conf_file=None, option1='Hi there world.', option2='Have a nice day.')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment