mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 14:14:45 +03:00
Userland: Let env
parse options up to first non-option
This commit is contained in:
parent
d7126fbbc2
commit
001c81b1be
Notes:
sideshowbarker
2024-07-18 12:39:01 +09:00
Author: https://github.com/gmta Commit: https://github.com/SerenityOS/serenity/commit/001c81b1be3 Pull-request: https://github.com/SerenityOS/serenity/pull/7896 Reviewed-by: https://github.com/awesomekling
@ -22,6 +22,8 @@ int main(int argc, char** argv)
|
||||
Vector<const char*> values;
|
||||
|
||||
Core::ArgsParser args_parser;
|
||||
args_parser.set_stop_on_first_non_option(true);
|
||||
|
||||
args_parser.add_option(ignore_env, "Start with an empty environment", "ignore-environment", 'i');
|
||||
args_parser.add_option(split_string, "Process and split S into separate arguments; used to pass multiple arguments on shebang lines", "split-string", 'S', "S");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user