mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:08:12 +00:00
LibCore: Offer to display a general description
This commit is contained in:
parent
886b43e999
commit
52a8062084
2 changed files with 8 additions and 0 deletions
|
@ -67,6 +67,8 @@ public:
|
|||
};
|
||||
|
||||
bool parse(int argc, char** argv, bool exit_on_failure = true);
|
||||
// *Without* trailing newline!
|
||||
void set_general_help(const char* help_string) { m_general_help = help_string; };
|
||||
void print_usage(FILE*, const char* argv0);
|
||||
|
||||
void add_option(Option&&);
|
||||
|
@ -86,6 +88,7 @@ private:
|
|||
Vector<Arg> m_positional_args;
|
||||
|
||||
bool m_show_help { false };
|
||||
const char* m_general_help { nullptr };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue