QA output created by 739

check no arguments
Done!

check non arguments
Non-option arguments: ['param1', 'param2']
Done!

check archive option and non arguments
overrideCB: got option 'a'
Archive list: ['file']
Non-option arguments: ['param']
Done!

check host option and hostzone
overrideCB: got option 'h'
overrideCB: got option 'z'
Host list: ['qa.r.us']
Done!

check timezone
overrideCB: got option 'Z'
Timezone: UTC
Done!

check option samples and interval
overrideCB: got option 's'
overrideCB: got option 't'
Samples: 5
Interval: 1.000
Done!

check custom local long options
overrideCB: got option 'l'
optionsCB: got option ''l' (/tmp) [index=19]
overrideCB: got option 'f'
optionsCB: got option ''f' [index=18]
Done!

check custom local short options
overrideCB: got option 'b'
optionsCB: got option ''b' [index=0]
Done!

check handling of non-option operands
overrideCB: got option 'b'
optionsCB: got option ''b' [index=0]
Non-option arguments: ['param1', 'param2']
Done!

check version message generation
test_pcp_options.py version X.Y.Z

check unknown option and usage message
test_pcp_options.py: unrecognized option '--munchies'
Usage: test_pcp_options.py [options] parameters ...

General Options:
  -A TIME, --align=TIME align sample times on natural boundaries
  -a FILE, --archive=FILE
                        metrics source is a PCP log archive
  -h HOST, --host=HOST  metrics source is PMCD on host
  -H FILE, --hostsfile=FILE
                        read metric source hosts from a file
  -K SPEC, --spec-local=SPEC
                        optional additional PMDA spec for local connection
  -L, --local-PMDA      metrics source is local connection to a PMDA
  -O TIME, --origin=TIME
                        initial sample time within the time window
  -S TIME, --start=TIME start of the time window
  -s N, --samples=N     terminate after this many samples
  -T TIME, --finish=TIME
                        end of the time window
  -t DELTA, --interval=DELTA
                        sampling interval
  -V, --version         display version number and exit
  -Z TZ, --timezone=TZ  set reporting timezone
  -z, --hostzone        set reporting timezone to local time of metrics source
  -?, --help            show this usage message and exit

Test Options:
  -f, --force           force some behaviour
  -l FILE, --list=FILE  open a list file

The parameter parameter is not optional.
overrideCB: got option '?'

check help option and usage message
Usage: test_pcp_options.py [options] parameters ...

General Options:
  -A TIME, --align=TIME align sample times on natural boundaries
  -a FILE, --archive=FILE
                        metrics source is a PCP log archive
  -h HOST, --host=HOST  metrics source is PMCD on host
  -H FILE, --hostsfile=FILE
                        read metric source hosts from a file
  -K SPEC, --spec-local=SPEC
                        optional additional PMDA spec for local connection
  -L, --local-PMDA      metrics source is local connection to a PMDA
  -O TIME, --origin=TIME
                        initial sample time within the time window
  -S TIME, --start=TIME start of the time window
  -s N, --samples=N     terminate after this many samples
  -T TIME, --finish=TIME
                        end of the time window
  -t DELTA, --interval=DELTA
                        sampling interval
  -V, --version         display version number and exit
  -Z TZ, --timezone=TZ  set reporting timezone
  -z, --hostzone        set reporting timezone to local time of metrics source
  -?, --help            show this usage message and exit

Test Options:
  -f, --force           force some behaviour
  -l FILE, --list=FILE  open a list file

The parameter parameter is not optional.
overrideCB: got option '?'
