1
Fork 0
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:
Ali Mohammad Pur 2022-03-23 15:54:52 +04:30 committed by Ali Mohammad Pur
parent 7e4cc187d9
commit 9453e0e6d2
2 changed files with 418 additions and 2 deletions

View file

@ -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 $(...)") \