#NEWLINE# def build_argparse( ) : #NEWLINE# #INDENT# parser = argparse . ArgumentParser ( prog = 'uws' ) #NEWLINE# parser . add_argument ( '-H' , '--host' , help = 'URL to UWS service' , required = True ) #NEWLINE# parser . add_argument ( '-U' , '--user' , help = 'user name' ) #NEWLINE# parser . add_argument ( '--password' , help = 'password' ) #NEWLINE# parser . add_argument ( '-P' , action = 'store_true' , help = 'hidden password (type at prompt)' ) #NEWLINE# parser . add_argument ( '-D' , '--dbg' , action = 'store_true' , help = 'debug mode' ) #NEWLINE# subparsers = parser . add_subparsers ( dest = 'command' , help = 'commands for UWS' ) #NEWLINE# build_list_argparse ( subparsers ) #NEWLINE# build_job_argparse ( subparsers ) #NEWLINE# return parser