summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/sbin/bcfg2-info3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sbin/bcfg2-info b/src/sbin/bcfg2-info
index 77a9a4bcd..7e8558855 100755
--- a/src/sbin/bcfg2-info
+++ b/src/sbin/bcfg2-info
@@ -646,6 +646,9 @@ class infoCore(cmd.Cmd, Bcfg2.Server.Core.BaseCore):
if not have_profile:
print("Profiling functionality not available.")
return
+ if len(arg) == 0:
+ print("Usage: profile <command> <args>")
+ return
tracefname = tempfile.mktemp()
p = profile.Profile()
p.runcall(self.onecmd, arg)