1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:14:58 +00:00

Base: Add sysctl man page

This commit is contained in:
Brendan Coles 2021-03-08 08:45:34 +00:00 committed by Andreas Kling
parent fb68aa1480
commit 69b98f7d32
2 changed files with 51 additions and 1 deletions

View file

@ -117,7 +117,7 @@ int main(int argc, char** argv)
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.add_positional_argument(var, "variable[=value]", "variable", Core::ArgsParser::Required::No);
args_parser.parse(argc, argv);
if (var == nullptr) {