diff options
author | Clark Williams <williams@redhat.com> | 2016-04-26 16:28:53 -0500 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2016-04-26 16:28:53 -0500 |
commit | 176bc949625482fd6aca875e97caf054e8aab4bb (patch) | |
tree | 702074ad855370b848eebe27db14a54e93ea4fc9 | |
parent | c2b6e7dcd735b98d52c09cd4b08cf6e0da61519a (diff) | |
download | rteval-176bc949625482fd6aca875e97caf054e8aab4bb.tar.gz |
rteval: added --version option
print the rteval version and exit
Signed-off-by: Clark Williams <williams@redhat.com>
-rwxr-xr-x | rteval-cmd | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -153,7 +153,7 @@ def parse_options(cfg, parser, cmdargs): parser.add_option("-O", "--onlyload", dest="rteval___onlyload", action='store_true', default=False, help="only run the loads (don't run measurement threads)") - parser.add_option("-V", "--version", dest="rteval__version", + parser.add_option("-V", "--version", dest="rteval___version", action='store_true', default=False, help='print rteval version and exit') @@ -161,7 +161,7 @@ def parse_options(cfg, parser, cmdargs): cmdargs = ["--help"] (cmd_opts, cmd_args) = parser.parse_args(args = cmdargs) - if cmd_opts.rteval__version: + if cmd_opts.rteval___version: print("rteval version %s" % RTEVAL_VERSION) sys.exit(0); |