diff options
author | Yabin Cui <yabinc@google.com> | 2015-04-28 15:54:13 -0700 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2015-05-04 14:32:32 -0700 |
commit | 9759e1b1ce76185aa539aeea2fb1cbd8382156e7 (patch) | |
tree | 69196161e28ebe74fb27093e026983fd98b004da /simpleperf/cmd_help.cpp | |
parent | 249518de7cb7ddb1c066b3bb8b10bc0f66222f7d (diff) | |
download | extras-9759e1b1ce76185aa539aeea2fb1cbd8382156e7.tar.gz |
Implement simpleperf record/dumprecord subcommands.
Bug: 19483574
Change-Id: Id879713a75c2d3a6289d8847b95ee0bb4a2cc8a0
Diffstat (limited to 'simpleperf/cmd_help.cpp')
-rw-r--r-- | simpleperf/cmd_help.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/simpleperf/cmd_help.cpp b/simpleperf/cmd_help.cpp index bf08dba5..0f3839b3 100644 --- a/simpleperf/cmd_help.cpp +++ b/simpleperf/cmd_help.cpp @@ -39,10 +39,10 @@ class HelpCommand : public Command { }; bool HelpCommand::Run(const std::vector<std::string>& args) { - if (args.empty()) { + if (args.size() == 1) { PrintShortHelp(); } else { - Command* cmd = Command::FindCommandByName(args[0]); + Command* cmd = Command::FindCommandByName(args[1]); if (cmd == nullptr) { LOG(ERROR) << "malformed command line: can't find help string for unknown command " << args[0]; LOG(ERROR) << "try using \"--help\""; |