mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:57:47 +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
|
@ -59,7 +59,7 @@ ErrorOr<void> parse_args(Main::Arguments arguments, Vector<String>& files, DuOpt
|
|||
Vector<StringView> files_to_process;
|
||||
|
||||
Core::ArgsParser::Option time_option {
|
||||
true,
|
||||
Core::ArgsParser::OptionArgumentMode::Required,
|
||||
"Show time of type time-type of any file in the directory, or any of its subdirectories. "
|
||||
"Available choices: mtime, modification, ctime, status, use, atime, access",
|
||||
"time",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue