mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[driver] Switched from --help-hidden to -help-hidden.
Left --help-hidden in as an alias for consistency with clang, but -help-hidden is now the primary spelling of this option. Swift SVN r11350
This commit is contained in:
@@ -64,10 +64,10 @@ static bool ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
|
||||
Opts.PrintStats = true;
|
||||
}
|
||||
|
||||
if (const Arg *A = Args.getLastArg(OPT_help, OPT__help_hidden)) {
|
||||
if (const Arg *A = Args.getLastArg(OPT_help, OPT_help_hidden)) {
|
||||
if (A->getOption().matches(OPT_help)) {
|
||||
Opts.PrintHelp = true;
|
||||
} else if (A->getOption().matches(OPT__help_hidden)) {
|
||||
} else if (A->getOption().matches(OPT_help_hidden)) {
|
||||
Opts.PrintHelpHidden = true;
|
||||
} else {
|
||||
llvm_unreachable("Unknown help option parsed");
|
||||
|
||||
Reference in New Issue
Block a user