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_list.cpp | |
parent | 249518de7cb7ddb1c066b3bb8b10bc0f66222f7d (diff) | |
download | extras-9759e1b1ce76185aa539aeea2fb1cbd8382156e7.tar.gz |
Implement simpleperf record/dumprecord subcommands.
Bug: 19483574
Change-Id: Id879713a75c2d3a6289d8847b95ee0bb4a2cc8a0
Diffstat (limited to 'simpleperf/cmd_list.cpp')
-rw-r--r-- | simpleperf/cmd_list.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/simpleperf/cmd_list.cpp b/simpleperf/cmd_list.cpp index 224c795a..923a884f 100644 --- a/simpleperf/cmd_list.cpp +++ b/simpleperf/cmd_list.cpp @@ -47,7 +47,7 @@ class ListCommand : public Command { }; bool ListCommand::Run(const std::vector<std::string>& args) { - if (!args.empty()) { + if (args.size() != 1) { LOG(ERROR) << "malformed command line: list subcommand needs no argument"; LOG(ERROR) << "try using \"help list\""; return false; |