boundary/measurement_get.py
def add_arguments(self):
        """
        Add specific command line arguments for this command   
        """

        # Call our parent to add the default arguments
        ApiCli.add_arguments(self)

        # Command specific arguments
        self.parser.add_argument('-f', '--format', dest='format', action='store', required=False,
                                 choices=['csv', 'json', 'raw', 'xml'], help='Output format. Default is raw')
        self.parser.add_argument('-n', '--name', dest='metric_name', action='store', required=True,
                                 metavar="metric_name", help='Metric identifier')
        self.parser.add_argument('-g', '--aggregate', dest='aggregate', action='store', required=False,
                                 choices=['sum', 'avg', 'max', 'min'], help='Metric default aggregate')
        self.parser.add_argument('-r', '--sample', dest='sample', action='store', type=int, metavar="sample",
                                 help='Down sample rate sample in seconds')
        self.parser.add_argument('-s', '--source', dest='source', action='store', metavar="source", required=True,
                                 help='Source of measurement')
        self.parser.add_argument('-b', '--start', dest='start', action='store', required=True, metavar="start",
                                 help='Start of time range as ISO 8601 string or epoch seconds')
        self.parser.add_argument('-d', '--end', dest='end', action='store', metavar="end", required=False,
                                 help='End of time range as ISO 8601 string or epoch seconds')

        self.parser.add_argument('-o', '--date-format', dest='date_format', action='store', metavar="format",
                                 required=False,
                                 help='For CSV, JSON, and XML output formats dates (see Python date.strftime). ' +
                                      'Default format is %%s')
def add_arguments(self):
        # Call our parent to add the default arguments
        ApiCli.add_arguments(self)

        # Command specific arguments
        self.parser.add_argument('-f', '--format', dest='format', action='store', required=False,
                                 choices=['csv', 'json', 'raw', 'xml'], help='Output format. Default is raw')
        self.parser.add_argument('-n', '--name', dest='metric_name', action='store', required=True,
                                 metavar="metric_name", help='Metric identifier')
        self.parser.add_argument('-g', '--aggregate', dest='aggregate', action='store', required=False,
                                 choices=['sum', 'avg', 'max', 'min'], help='Metric default aggregate')
        self.parser.add_argument('-r', '--sample', dest='sample', action='store', type=int, metavar="sample",
                                 help='Down sample rate sample in seconds')
        self.parser.add_argument('-s', '--source', dest='source', action='store', metavar="source", required=True,
                                 help='Source of measurement')
        self.parser.add_argument('-b', '--start', dest='start', action='store', required=True, metavar="start",
                                 help='Start of time range as ISO 8601 string or epoch seconds')
        self.parser.add_argument('-d', '--end', dest='end', action='store', metavar="end", required=False,
                                 help='End of time range as ISO 8601 string or epoch seconds')

        self.parser.add_argument('-o', '--date-format', dest='date_format', action='store', metavar="format",
                                 required=False,
                                 help='For CSV, JSON, and XML output formats dates (see Python date.strftime). ' +
                                      'Default format is %%s')
def add_arguments ( self ) : # Call our parent to add the default arguments ApiCli . add_arguments ( self ) # Command specific arguments self . parser . add_argument ( '-f' , '--format' , dest = 'format' , action = 'store' , required = False , choices = [ 'csv' , 'json' , 'raw' , 'xml' ] , help = 'Output format. Default is raw' ) self . parser . add_argument ( '-n' , '--name' , dest = 'metric_name' , action = 'store' , required = True , metavar = "metric_name" , help = 'Metric identifier' ) self . parser . add_argument ( '-g' , '--aggregate' , dest = 'aggregate' , action = 'store' , required = False , choices = [ 'sum' , 'avg' , 'max' , 'min' ] , help = 'Metric default aggregate' ) self . parser . add_argument ( '-r' , '--sample' , dest = 'sample' , action = 'store' , type = int , metavar = "sample" , help = 'Down sample rate sample in seconds' ) self . parser . add_argument ( '-s' , '--source' , dest = 'source' , action = 'store' , metavar = "source" , required = True , help = 'Source of measurement' ) self . parser . add_argument ( '-b' , '--start' , dest = 'start' , action = 'store' , required = True , metavar = "start" , help = 'Start of time range as ISO 8601 string or epoch seconds' ) self . parser . add_argument ( '-d' , '--end' , dest = 'end' , action = 'store' , metavar = "end" , required = False , help = 'End of time range as ISO 8601 string or epoch seconds' ) self . parser . add_argument ( '-o' , '--date-format' , dest = 'date_format' , action = 'store' , metavar = "format" , required = False , help = 'For CSV, JSON, and XML output formats dates (see Python date.strftime). ' + 'Default format is %%s' )
Add specific command line arguments for this command
Add specific command line arguments for this command