def main(args=None): handler = ArgumentHandler() handler.set_subcommands({ 'sample': sample, 'download': download, 'atvec': atvec }) handler.run()
def main(args=None): handler = ArgumentHandler() handler.set_subcommands( {'sample': sample, 'download': download, 'canvas': canvas, 'atvec': atvec} ) handler.run()
def classifier_model_cli(parser, context, args): """Emit the path to the autocomplete script for use with eval $(snap autocomplete)""" handler = ArgumentHandler( usage="Method to train the model", description="Trains the model manually from the cli", epilog="Train the model manually") handler.set_subcommands({ 'train': train_model, }) handler.run(args, context_fxn={})
def main(args=sys.argv[1:]): # noqa pragma: no cover """Parse the args, run the commands.""" handler = ArgumentHandler( epilog="description", formatter_class=RawDescriptionHelpFormatter, ) handler.set_subcommands({ 'classifier': classifier_model_cli, 'help': subcmd_help }) handler.run(args, context_fxn={})