Update links in user guide
[yardstick.git] / yardstick / cmd / cli.py
index 1f058a5..a7ba04f 100644 (file)
@@ -22,6 +22,7 @@ from oslo_config import cfg
 from yardstick.cmd.commands import task
 from yardstick.cmd.commands import runner
 from yardstick.cmd.commands import scenario
+from yardstick.cmd.commands import testcase
 
 CONF = cfg.CONF
 cli_opts = [
@@ -58,7 +59,8 @@ class YardstickCLI():
     categories = {
         'task': task.TaskCommands,
         'runner': runner.RunnerCommands,
-        'scenario': scenario.ScenarioCommands
+        'scenario': scenario.ScenarioCommands,
+        'testcase': testcase.TestcaseCommands
     }
 
     def __init__(self):
@@ -101,8 +103,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",