mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:28:12 +00:00
Shell: Add an ArgsParser-based argument parser builtin
Afterall, why _shouldn't_ Shell functions have nice interfaces? also helps with autocompletion :^)
This commit is contained in:
parent
7e4cc187d9
commit
9453e0e6d2
2 changed files with 418 additions and 2 deletions
|
@ -51,7 +51,8 @@
|
|||
__ENUMERATE_SHELL_BUILTIN(wait) \
|
||||
__ENUMERATE_SHELL_BUILTIN(dump) \
|
||||
__ENUMERATE_SHELL_BUILTIN(kill) \
|
||||
__ENUMERATE_SHELL_BUILTIN(noop)
|
||||
__ENUMERATE_SHELL_BUILTIN(noop) \
|
||||
__ENUMERATE_SHELL_BUILTIN(argsparser_parse)
|
||||
|
||||
#define ENUMERATE_SHELL_OPTIONS() \
|
||||
__ENUMERATE_SHELL_OPTION(inline_exec_keep_empty_segments, false, "Keep empty segments in inline execute $(...)") \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue