Base definitions for command line

Base class and function utilities for cli

class orion.core.cli.base.OrionArgsParser(description='Oríon CLI for asynchronous distributed optimization')[source]

Parser object handling the upper-level parsing of Oríon’s arguments.

Methods

execute(argv)

Execute main function of the subparser

get_subparsers()

Return the subparser object for this parser.

parse(argv)

Call argparse and generate a dictionary of arguments' value

execute(argv)[source]

Execute main function of the subparser

get_subparsers()[source]

Return the subparser object for this parser.

parse(argv)[source]

Call argparse and generate a dictionary of arguments’ value

orion.core.cli.base.get_basic_args_group(parser, group_name='Oríon arguments', group_help="These arguments determine orion's behaviour")[source]

Return the basic arguments for any command.

orion.core.cli.base.get_user_args_group(parser)[source]

Return the user group arguments for any command. User group arguments are composed of the user script and the user args