mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:27:34 +00:00
LibCore: Replace the ArgsParser option argument setting with an enum
Replacement conditions for `requires_argument` have been chosen based on what would be most convenient for implementing an eventual optional argument mode.
This commit is contained in:
parent
810b9daa63
commit
3d51642037
15 changed files with 59 additions and 53 deletions
|
@ -138,7 +138,7 @@ static struct winsize g_window_size;
|
|||
static void parse_args(Main::Arguments arguments, TopOption& top_option)
|
||||
{
|
||||
Core::ArgsParser::Option sort_by_option {
|
||||
true,
|
||||
Core::ArgsParser::OptionArgumentMode::Required,
|
||||
"Sort by field [pid, tid, pri, user, state, virt, phys, cpu, name]",
|
||||
"sort-by",
|
||||
's',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue