()
return args
Parse commandline.
Parse commandline.
Parse commandline .
def get_args():
    """Parse commandline."""
    parser = argparse.ArgumentParser()
    parser.add_argument("--input", required=True, help="input model file")
    parser.add_argument('--nnet-type', type=int,
                        dest='nnet_type', help='nnet type', default=3)
    args = parser.parse_args()
    return args
def get_args ( ) : parser = argparse . ArgumentParser ( ) parser . add_argument ( "--input" , required = True , help = "input model file" ) parser . add_argument ( '--nnet-type' , type = int , dest = 'nnet_type' , help = 'nnet type' , default = 3 ) args = parser . parse_args ( ) return args