Example #1
0
def main(args=None):
    handler = ArgumentHandler()
    handler.set_subcommands({
        'sample': sample,
        'download': download,
        'atvec': atvec
    })
    handler.run()
Example #2
0
def main(args=None):
    handler = ArgumentHandler()
    handler.set_subcommands(
        {'sample': sample,
         'download': download,
         'canvas': canvas,
         'atvec': atvec} )
    handler.run()
Example #3
0
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={})
Example #4
0
File: cli.py Project: binayr/SQUAT
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={})