{"repo":"sam701/zig-cli","free":true,"listed":false,"github":"https://github.com/sam701/zig-cli","clone":"git clone https://github.com/sam701/zig-cli.git","description":"A simple package for building command line apps in Zig","language":"Zig","stars":348,"topics":["cli","argument-parser","zig-package","command-line","ziglang"],"license":"MIT","category":"cli-tools","readme_excerpt":"zig-cli A simple package for building command line apps in Zig. Inspired by urfave/cli Go package. Features - Arguments parsed directly into Zig values - Long and short options: --option , -o - Optional = sign: --address=127.0.0.1 equals --address 127.0.0.1 - Concatenated short options: -a -b -c equals -abc - Subcommands: cmd -opt subcmd -opt2 - Multiple option values: --opt val1 --opt val2 --opt val3 - Enums as option values: --opt EnumValue1 - Positional arguments (required and optional), mixed with options: --opt val arg1 -v - Option values read from environment variables with a configured prefix - Stops option parsing after -- : cmd -- --abc treats --abc as a positional argument - Errors on missing required options: ERROR: missing required option '--port' - App version and author metadata - Built-in --help flag with colored output when a TTY is attached Usage API Documentation Installing with the Zig package manager 1. Fetch the package: 2. Wire it up in build.zig : Help output See simple.zig for a full example with subcommands. License MIT","default_branch":null,"files":null,"tree":[],"storefront":"/r/sam701","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sam701/zig-cli/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}