diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-02 21:19:32 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-02 21:19:32 +0000 |
commit | d3b24d3b8e0109f0b575287b0c875e00cec8760e (patch) | |
tree | a85058e633ef8a5ac729036844762401ae5ca6da | |
parent | a257384d49ca625414f320ceac41c27c65d4c6f8 (diff) | |
download | chromium_src-d3b24d3b8e0109f0b575287b0c875e00cec8760e.zip chromium_src-d3b24d3b8e0109f0b575287b0c875e00cec8760e.tar.gz chromium_src-d3b24d3b8e0109f0b575287b0c875e00cec8760e.tar.bz2 |
gn: Accept -h as an alias for --help.
BUG=none
Review URL: https://codereview.chromium.org/122993003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242799 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | tools/gn/gn_main.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gn/gn_main.cc b/tools/gn/gn_main.cc index bfd5010..86360cb 100644 --- a/tools/gn/gn_main.cc +++ b/tools/gn/gn_main.cc @@ -45,8 +45,8 @@ int main(int argc, char** argv) { std::vector<std::string> args = GetArgs(cmdline); std::string command; - if (cmdline.HasSwitch("help")) { - // Make "--help" default to help command. + if (cmdline.HasSwitch("help") || cmdline.HasSwitch("h")) { + // Make "-h" and "--help" default to help command. command = commands::kHelp; } else if (cmdline.HasSwitch("version")) { // Make "--version" print the version and exit. |