def cli_parse ( parser ) : parser . add_argument ( '-n' , '--samples' , type = int , required = True , help = 'Number of Samples' ) return parser
python argparse test default
Add method specific options to CLI parser . Parameters ---------- parser : argparse object Returns ---------- Updated argparse object
def cli_parse(parser):
    """Add method specific options to CLI parser.

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

    Returns
    ----------
    Updated argparse object
    """
    parser.add_argument('-n', '--samples', type=int, required=True,
                        help='Number of Samples')
    return parser