1. Tikitu de Jager
  2. argparse_config

Commits

Tikitu de Jager  committed 3108fea Draft

yet more elevator pitch

  • Participants
  • Parent commits fd2df7b
  • Branches default

Comments (0)

Files changed (1)

File README.rst

View file
     config file. The cute thing is, it figures out what config options to
     expect based on your ``argparse`` commandline args definition.
 
+It looks like this::
+
+    >>> # first prepare arg_parser from the argparse module, then:
+    >>> import argparse_config
+    >>> argparse_config.read_config(arg_parser, '/home/tikitu/.my_config_file.cfg')
+
 More details ("But what does this mean for *me*?!) on PyPI_, or you can check
 the `bleeding edge docs`_.