Skip to content

Instantly share code, notes, and snippets.

@j3ffml
j3ffml / bash_cli.sh
Created June 26, 2024 12:46
Simple bash cli wrapper with options that calls another program
#!/bin/bash -e
usage() {
echo "Usage: $0 [--boolean-option] [--option-with-value=value] -- [args for another program]"
exit 1
}
option_value=""
boolean_option=0