sorcha_cmdline.sorchaargumentparser

Classes

SorchaArgumentParser

A subclass of the argparse.ArgumentParser that adds in a print statement

Module Contents

class SorchaArgumentParser(*args, **kwargs)[source]

Bases: argparse.ArgumentParser

A subclass of the argparse.ArgumentParser that adds in a print statement to make it clearer how to get detailed help for new users who may not be as familiar with linux/unix

print_usage(file=None)[source]

Print a brief description of how the ArgumentParser should be invoked on the command line. If file is None, sys.stdout is assumed.

Parameters:

file (str or None) -- Variable length argument list.

Return type:

None.