Common Command Line Options

Common command line options, this is to try and present some degree of interface consistency among command line applications.

Copyright (c) 2010-2011 Paul Ross. All rights reserved.

TotalDepth.util.CmnCmdOpts.argParser(desc, prog=None, version=None)

Return an command line parser with the standard pre-set options.

Standard options are -h, --version and:

-j: Multiprocessing job control.

-k: Flag to indicate that we should keep going as far as sensible.

-l: Log level.

TotalDepth.util.CmnCmdOpts.argParserIn(*args, **kwargs)

Return an command line parser with the standard pre-set options plus an input path as an argument.

TotalDepth.util.CmnCmdOpts.argParserInOut(*args, **kwargs)

Return an command line parser with the standard pre-set options plus an input and output paths as an arguments.

Previous topic

Utility Package Reference

Next topic

DictTree

This Page