server_scripts module

Common

pysmurf.core.server_scripts.Common.get_args()[source]

Parses and processes args, returning the modified arguments as a dict. This is to maintain backwards compatibility with the old of parsing arguments.

pysmurf.core.server_scripts.Common.make_parser(parser=None)[source]

Creates argparse parser containing smurf command-line options

Parameters

parser (optional, argparse.ArgumentParser) – Existing parser to add arguments to. If not specified a new one will be created and returned.

pysmurf.core.server_scripts.Common.process_args(args)[source]

Processes args from argparse. Unzips zip_file and finds/sets the args.config_file. Also set the server port to a default values if it was not defined.

_VariableGroupExample