aboutsummaryrefslogtreecommitdiff
path: root/cli/lib/cli/climanager.py
diff options
context:
space:
mode:
Diffstat (limited to 'cli/lib/cli/climanager.py')
-rw-r--r--cli/lib/cli/climanager.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/lib/cli/climanager.py b/cli/lib/cli/climanager.py
index ca072b6..d350bcb 100644
--- a/cli/lib/cli/climanager.py
+++ b/cli/lib/cli/climanager.py
@@ -24,6 +24,7 @@ import textwrap
from cli import clicommand
from cli import importutils
import error
+from metrics import metrics_util
class Error(error.Error):
@@ -256,6 +257,7 @@ class Cli(object):
"""
self.args = self._ParseArgs(args)
command = self.args.command_type()
+ metrics_util.set_command_type(command)
result = command.RunWithMetrics(self.args)
# Enforce the return type with a useful message.