mirror of
https://github.com/guzba/bossy
synced 2026-01-14 21:01:41 +00:00
No description
| .github/workflows | ||
| examples | ||
| src | ||
| tests | ||
| .gitignore | ||
| bossy.nimble | ||
| LICENSE | ||
| README.md | ||
Bossy
nimble install bossy
Bossy is a simple repo that makes working with command line arguments a little easier.
All Bossy does is parse the command line arguments using std/parseopt and give you a simpler interface to work with.
Bossy is great for supporting command line parameters without any magic.
If you want a powerful library for building command line interfaces, Bossy currently isn't that. There are other options on Nimble.
Example
import bossy
## Get the command line arguments, parsed by Bossy
let args = getCommandLineArgs()
## Check if an argument is present
echo "flag" in args
## Get the value for an argument
echo args["port"]
## Get the value for an argument, or use a default value
echo args.getOrDefault("port", "8080")