cli

The cli (command line interface) module provides the cli.run function that can be used set up properties, initiate an output environment, and execute a python function based arguments specified on the command line.

nutils.cli.run(func, *, args=None, loaduserconfig=True)

parse command line arguments and call function

nutils.cli.choose(*functions, args=None, loaduserconfig=True)

parse command line arguments and call one of multiple functions

nutils.cli.setup(scriptname, kwargs, outrootdir='~/public_html', outdir=None, cachedir='cache', cache=False, nprocs=1, matrix=<nutils.matrix.Scipy object at 0x7fea951baf98>, richoutput=None, outrooturi=None, outuri=None, verbose=4, pdb=False, gracefulexit=True, **unused)

Set up compute environment.