Skip to content

Commit ba2435d

Browse files
committed
Recommend cvd help instead of cvd --help
`cvd --help` and `cvd --help command` are still valid, but only `cvd help` and `cvd help command` are mentioned in the global help output.
1 parent 4b5c4bd commit ba2435d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • base/cvd/cuttlefish/host/commands/cvd/cli/commands

base/cvd/cuttlefish/host/commands/cvd/cli/commands/help.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
#include "absl/strings/str_join.h"
2828

29+
#include "cuttlefish/flag_parser/flag.h"
2930
#include "cuttlefish/flag_parser/gflags_compat.h"
3031
#include "cuttlefish/host/commands/cvd/cli/command_request.h"
3132
#include "cuttlefish/host/commands/cvd/cli/commands/command_handler.h"
@@ -207,16 +208,15 @@ std::string CvdHelpHandler::TopLevelHelp() {
207208

208209
paragraphs.emplace_back(HelpParagraph::Raw(
209210
R"(Usage:
210-
cvd [selector/global options] <command> [args])"));
211+
cvd [selector/global options] <command> [args]
212+
cvd help [<command> [args]])"));
211213

212214
std::stringstream help_message;
213215
help_message << FormatHelpText(paragraphs);
214216

215217
help_message << "Global Options:\n";
216-
bool help_val = false;
217218
std::string verbosity_val = "INFO";
218219
std::vector<Flag> global_flags = {
219-
GflagsCompatFlag("help", help_val).Help("Print this message"),
220220
GflagsCompatFlag("verbosity", verbosity_val)
221221
.Help("Adjust Cvd verbosity level. LEVEL is one of ERROR, WARNING, "
222222
"INFO, DEBUG, VERBOSE."),

0 commit comments

Comments
 (0)