def prepare_argument_parser(cls, parser, args): parser.add_argument('--command', type=str, help='Command to run') add_output_dir_arg(parser) parser.add_argument('-p', '--parameters', dest='parameters_file', help='Json file where parameters are stored', type=str) add_detach_command_line_argument(parser)
def prepare_argument_parser(cls, parser, args): cls.maybe_add_execution_id_arg(parser, args) add_detach_command_line_argument(parser) add_output_dir_arg(parser) parser.add_argument('-p', '--override-parameters', dest='parameters_file', help='Override the parameters of the previous ' 'run with the ones in this file', type=str, default=None)
def prepare_argument_parser(cls, parser, args): cls.maybe_add_execution_id_arg(parser, args) add_output_dir_arg(parser) parser.add_argument( '--force-if-running', '-f', action='store_true', default=False, help='Download output even if the process is still running. ' 'Discouraged as the output might be in an inconsistent ' 'state. If the output directory is present it\'ll be ' 'overwritten') parser.add_argument('--path', '-p', type=str, default=None, help='Download only the path specified')
def prepare_argument_parser(cls, parser, args): cls.maybe_add_execution_id_arg(parser, args) add_detach_command_line_argument(parser) add_output_dir_arg(parser)