ARGBASH(1)
π ARGBASH(1) β the bestie edition of this manual, no cap π
β¨ NAME β¨
argbash β Argbash is an argument parser generator for Bash. Periodt. π
π¦ SYNOPSIS π¦
argbash [--output OUTPUT] [--in-place] [--type type] [--library]
[--strip content] [--check-typos] [--commented] [--search SEARCH]...
[--debug DEBUG] [--help] [--version] <input>
πΈ DESCRIPTION πΈ
Okay so argbash is a code generator that typically generates a bash argument-parsing library tailor-made for your script. It lets you describe arguments your script should take, and then you can generate the bash parsing code. The generated code stays in your script by default, but you can have it generated to a separate file and let bash include it in your script for you. Argbash is very simple to use and the generated code is relatively nice to read. Moreover, argument definitions stay embedded in the script, so when you need to update the parsing logic, you just re-run the argbash script on the already generated script. Obsessed, honestly. π
π ARGUMENTS π
Hereβs the whole flag family, bestie β same facts, extra sparkle:
-o OUTPUT,--output OUTPUTβ Name of the output file (pass-for stdout). Default:-.-i,--in-placeβ Update a bash script in-place. Default:off.-t,--typebash-script|posix-script|manpage|manpage-defs|completion|docopt|excisedβ Output type to generate. Default:bash-script. Check out the documentation to learn about all argbash capabilities that are supported.--libraryβ Whether the input file is the pure parsing library. Default:off. π¨ This option is deprecated and it is the same as--strip user-content.--strip none|user-content|allβ Determines what to have in the output. Default:none. You can either stripnone, which is useful for scripts. If you stripuser-content, you keep the Argbash header. If you stripall, you will have only the generated content in the result.--check-typosβ Whether to check for possible argbash macro typos. Default:on.-c,--commentedβ Commented mode - include explanatory comments with the parsing code. Default:off.-I SEARCH,--search SEARCHβ Directories to search for the wrapped scripts (directory of the template will be added to the end of the list). Default:".".--debug DEBUGβ (developer option) Tell autom4te to trace a macro.-h,--helpβ Prints help.-v,--versionβ Prints version.
π AUTHOR π
MatΔj TΓ½Δ β iconic, obviously. No cap. π
π Thatβs the whole page, bestie β argbash 2.11.0, dated 2025-05-27, version and date cute and accounted for. She ate and left no crumbs. π
π¦ where this page comes from
- epel 9: argbash 2.11.0-2.el9 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms