Common module: standard_argparse.py

standard_argparse.py

This module contains a set of commands initializing standard argparse.ArgumentParser objects with standard sets of pre-defined options. The idea here is that I have a standard basic parser with set syntax but can also have a ‘cluster parser’ with a set of pre-defined cluster oriented options that can be added to the standard basic parser for scripts that need cluster support, etc etc

created_on:2013-04-08

Standard Parsers

script_options.standard_argparse.standard_parser(ver, prog=None, usage=None, description=None, epilog=None, tmpdir=True, infile=True, infiletype='txt', outfile=True)[source]

Set up a command line parser with standard options.

Depending on the options supplied to the function the standard options include an input file, an output file, a log file, a temporary directory a verbosity switch and standard argparse.ArgumentParser version and help switches.

Table Of Contents

Previous topic

Common Routines: Options parsing

Next topic

Common module: options_parsing.py

This Page