#!/usr/bin/env bash set -ue eval "$(clap4shell "$@" < args: - verbose: help: verbose output short: v long: verbose - host: takes_value: true long: host value_name: help: 'host name' - mode: long: mode help: option with a certain set of possible values possible_values: [ herbivore, carnivore, omnivore ] - token: long: token help: this option can be specified via an environment variable too env: CLAP4SHELL_TOKEN takes_value: true - cmd: help: command - arg: help: command arguments multiple_values: true subcommands: - ls: bin_name: ls about: Display a list of entities args: - entity: multiple_values: true EOT )" # Print all variables declare -p | tail