(parser)
return parser
Add method specific options to CLI parser.

    Parameters
    ----------
    parser : argparse object

    Returns
    ----------
    Updated argparse object
Add method specific options to CLI parser.
Add method specific options to CLI parser .
def cli_parse(parser):
    """Add method specific options to CLI parser.

    Parameters
    ----------
    parser : argparse object

    Returns
    ----------
    Updated argparse object
    """
    parser.add_argument('--max-order', type=int, required=False, default=2,
                        choices=[1, 2],
                        help='Maximum order of sensitivity indices \
                           to calculate')
    parser.add_argument('--skip-values', type=int, required=False, default=None,
                        help='Number of sample points to skip (default: next largest power of 2 from `samples`)')

    # hacky way to remove an argument (seed option is not relevant for Saltelli)
    remove_opts = [x for x in parser._actions if x.dest == 'seed']
    [parser._handle_conflict_resolve(None, [('--seed', x), ('-s', x)]) for x in remove_opts]

    return parser
def cli_parse ( parser ) : parser . add_argument ( '--max-order' , type = int , required = False , default = 2 , choices = [ 1 , 2 ] , help = 'Maximum order of sensitivity indices \
                           to calculate' ) parser . add_argument ( '--skip-values' , type = int , required = False , default = None , help = 'Number of sample points to skip (default: next largest power of 2 from `samples`)' ) # hacky way to remove an argument (seed option is not relevant for Saltelli) remove_opts = [ x for x in parser . _actions if x . dest == 'seed' ] [ parser . _handle_conflict_resolve ( None , [ ( '--seed' , x ) , ( '-s' , x ) ] ) for x in remove_opts ] return parser