Argc
lastmod 2025-12-29created 2025-12-291 edits
A powerful Bash-based CLI building framework
About
- A Bash framework designed to make building command-line interfaces (CLI) easy, automating boilerplate such as argument parsing, help, and error handling
- Describes the CLI structure with comment-based definitions, giving a concise development flow that lets you focus on the core logic
- Handles flags, options, positional arguments, and subcommands automatically, with input validation and rich usage text generation
- Maps argument values to variables automatically, so they are intuitive to access within the script
- Can generate standalone Bash scripts, so builds can be distributed without an Argc dependency
- Supports generating completion scripts, providing tab completion in many shell environments such as bash, zsh, fish, and powershell
- Includes automatic man page generation, simplifying CLI documentation
- Environment variable integration automatically handles binding to options and positional arguments, validation, and documentation
- Provides Argcfile.sh-based task automation, so it can be used as a Makefile-like command runner
- Keeps a Bash-friendly workflow
- Integrates naturally with the GNU toolset (awk, sed, grep, etc.)
- Supports dotenv loading and environment variable validation