mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 17:07:35 +00:00
Userland: Write some '--help' descriptions where appropriate
This commit is contained in:
parent
52a8062084
commit
4ec77ba929
32 changed files with 47 additions and 4 deletions
|
@ -114,6 +114,8 @@ int main(int argc, char** argv)
|
|||
const char* var = nullptr;
|
||||
|
||||
Core::ArgsParser args_parser;
|
||||
args_parser.set_general_help(
|
||||
"Show or modify system-internal values. This requires root, and can crash your system.");
|
||||
args_parser.add_option(show_all, "Show all variables", nullptr, 'a');
|
||||
args_parser.add_positional_argument(var, "Command (var[=value])", "command", Core::ArgsParser::Required::No);
|
||||
args_parser.parse(argc, argv);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue