#NEWLINE# def setupParser( parser ) : #NEWLINE# #INDENT# filters = parser . add_argument_group ( 'filter parameters' ) #NEWLINE# self_filters = parser . add_argument_group ( 'self filter parameters' ) #NEWLINE# user_filters = parser . add_argument_group ( 'user filter parameters' ) #NEWLINE# time_filters = parser . add_argument_group ( 'time filter parameters' , textwrap . fill ( phlsys_strtotime . describe_duration_string_to_time_delta ( ) ) ) #NEWLINE# fmts = parser . add_argument_group ( 'output format parameters' , 'choose one only, default is "short"' ) #NEWLINE# formats = fmts . add_mutually_exclusive_group ( ) #NEWLINE# _setupParserTopLevel ( parser ) #NEWLINE# _setupParserFilters ( filters , self_filters , user_filters , time_filters ) #NEWLINE# formats . add_argument ( '--format-type' , choices = [ 'ids' , 'short' , 'python' , 'json' ] , help = 'see usage examples for sample output' ) #NEWLINE# formats . add_argument ( '--format-string' , metavar = 'FORMAT' , type = str , help = "compose your own output format, e.g. '$id $title', see usage examples for more details" ) #NEWLINE# phlsys_makeconduit . add_argparse_arguments ( parser )