parameters: ()
return_statement: return parser.parse_args()
docstring: Command-line options for statistics tool.
docstring_summary: Command-line options for statistics tool.
docstring_tokens: Command - line options for statistics tool .
function: def command_line_options():
      """
      Command-line options for statistics tool.
      """
      parser = argparse.ArgumentParser(description="Command-line utility for visualizing or tabulating statistics computed from the stochastic tools module.")
  
      parser.add_argument('--text-table', dest='format', action='store_const', const=0)
      parser.add_argument('--markdown-table', dest='format', action='store_const', const=1)
      parser.add_argument('--latex-table', dest='format', action='store_const', const=2)
      parser.add_argument('--bar-plot', dest='format', action='store_const', const=3)
      parser.add_argument('--line-plot', dest='format', action='store_const', const=4)
  
      parser.add_argument('filenames', nargs='+', type=str, help="The Reporter data file to open, for sample 'foo_out.json ' or 'foo_out_*.json'.")
      parser.add_argument('-obj', '--objects', default=[], nargs='+', type=str, help="List of StatisticsReporter objects to consider, by default all objects are considered.")
      parser.add_argument('-val', '--values', default=[], nargs='+', type=str, help="List of values to consider, by default all values are considered.")
      parser.add_argument('-s', '--stats', default=[], nargs='+', type=str, help="List of stats to consider, by default all stats are considered.")
      parser.add_argument('-ci', '--confidence-interval', dest='confidence_interval', default=None, nargs=2, type=float, help="Pair of confidence interval levels to use, by default the largest and smallest are used.")
      parser.add_argument('-t', '--times', default=[], nargs='+', type=float, help="List of times to consider, by all times are considered.")
      parser.add_argument('-n', '--names', default='{}', type=str, help="Map between the value name and display name in json format. Example: '{\"value1_name\" : \"Value One\", \"value2_name\" : \"Value Two\"}'")
      parser.add_argument('-sn', '--stat-names', default='{}', type=str, help="Map between the statistic name and  what is displayed in json format. Example: '{\"MEAN\" : \"Average\", \"STDDEV\" : \"Standard Deviation\"}'")
      parser.add_argument('-nf', '--number-format', default='.4g', type=str, help="The number format for tables.")
      parser.add_argument('-o', '--output', default=None, type=str, help="File name to save figure or table")
      parser.add_argument('--ignore-ci', action='store_true', help="Use this argument to ignore confidence intervals.")
  
      parser.add_argument('--xvalue', default='Time', type=str, help="The value to use for x value in the line plot. Default is time. This is only relevant with '--line-plot'.")
      parser.add_argument('--xlabel', default=None, type=str, help="The x-axis label in the line plot. Default is whatever '--xvalue' is. This is only relevant with '--line-plot'.")
      parser.set_defaults(ignore_ci=False, format=0)
      return parser.parse_args()
function_tokens: def command_line_options ( ) : parser = argparse . ArgumentParser ( description = "Command-line utility for visualizing or tabulating statistics computed from the stochastic tools module." ) parser . add_argument ( '--text-table' , dest = 'format' , action = 'store_const' , const = 0 ) parser . add_argument ( '--markdown-table' , dest = 'format' , action = 'store_const' , const = 1 ) parser . add_argument ( '--latex-table' , dest = 'format' , action = 'store_const' , const = 2 ) parser . add_argument ( '--bar-plot' , dest = 'format' , action = 'store_const' , const = 3 ) parser . add_argument ( '--line-plot' , dest = 'format' , action = 'store_const' , const = 4 ) parser . add_argument ( 'filenames' , nargs = '+' , type = str , help = "The Reporter data file to open, for sample 'foo_out.json ' or 'foo_out_*.json'." ) parser . add_argument ( '-obj' , '--objects' , default = [ ] , nargs = '+' , type = str , help = "List of StatisticsReporter objects to consider, by default all objects are considered." ) parser . add_argument ( '-val' , '--values' , default = [ ] , nargs = '+' , type = str , help = "List of values to consider, by default all values are considered." ) parser . add_argument ( '-s' , '--stats' , default = [ ] , nargs = '+' , type = str , help = "List of stats to consider, by default all stats are considered." ) parser . add_argument ( '-ci' , '--confidence-interval' , dest = 'confidence_interval' , default = None , nargs = 2 , type = float , help = "Pair of confidence interval levels to use, by default the largest and smallest are used." ) parser . add_argument ( '-t' , '--times' , default = [ ] , nargs = '+' , type = float , help = "List of times to consider, by all times are considered." ) parser . add_argument ( '-n' , '--names' , default = '{}' , type = str , help = "Map between the value name and display name in json format. Example: '{\"value1_name\" : \"Value One\", \"value2_name\" : \"Value Two\"}'" ) parser . add_argument ( '-sn' , '--stat-names' , default = '{}' , type = str , help = "Map between the statistic name and  what is displayed in json format. Example: '{\"MEAN\" : \"Average\", \"STDDEV\" : \"Standard Deviation\"}'" ) parser . add_argument ( '-nf' , '--number-format' , default = '.4g' , type = str , help = "The number format for tables." ) parser . add_argument ( '-o' , '--output' , default = None , type = str , help = "File name to save figure or table" ) parser . add_argument ( '--ignore-ci' , action = 'store_true' , help = "Use this argument to ignore confidence intervals." ) parser . add_argument ( '--xvalue' , default = 'Time' , type = str , help = "The value to use for x value in the line plot. Default is time. This is only relevant with '--line-plot'." ) parser . add_argument ( '--xlabel' , default = None , type = str , help = "The x-axis label in the line plot. Default is whatever '--xvalue' is. This is only relevant with '--line-plot'." ) parser . set_defaults ( ignore_ci = False , format = 0 ) return parser . parse_args ( )