aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/cmd/cli.py
diff options
context:
space:
mode:
Diffstat (limited to 'yardstick/cmd/cli.py')
-rw-r--r--yardstick/cmd/cli.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/yardstick/cmd/cli.py b/yardstick/cmd/cli.py
index 1f058a5a1..8d75d7d5e 100644
--- a/yardstick/cmd/cli.py
+++ b/yardstick/cmd/cli.py
@@ -101,8 +101,9 @@ class YardstickCLI():
'''run the command line interface'''
# register subcommands to parse additional command line arguments
- parser = lambda subparsers: self._add_command_parsers(
- YardstickCLI.categories, subparsers)
+ def parser(subparsers):
+ self._add_command_parsers(YardstickCLI.categories, subparsers)
+
category_opt = cfg.SubCommandOpt("category",
title="Command categories",
help="Available categories",