1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-09-11 13:00:41 +03:00

Remove --help commandline special case

This special case was not handled in the `ParametersParser` and
therefore did not respect the `--` separator for switches.
This commit is contained in:
Philipp Jungkamp 2024-06-16 18:30:25 +02:00
parent 385a1aec18
commit 7e9c4b7f6a

View File

@ -1122,9 +1122,6 @@ int main(int argc, char* argv[])
| transform([](auto* s) { return String{s}; })
| gather<Vector<String>>();
if (contains(params, "--help"_sv))
return show_usage();
ParametersParser parser{params, param_desc};
const bool show_help_message = (bool)parser.get_switch("help");