No description
Find a file
Ryan Oldenburg 0589114471 update for 2.0
2023-08-28 13:40:18 -05:00
.github/workflows update for 2.0 2023-08-28 13:40:18 -05:00
examples started 2022-12-28 21:42:22 -06:00
src started 2022-12-28 21:42:22 -06:00
tests started 2022-12-28 21:42:22 -06:00
.gitignore Initial commit 2022-12-28 20:59:49 -06:00
bossy.nimble f 2022-12-28 21:46:00 -06:00
LICENSE started 2022-12-28 21:42:22 -06:00
README.md use github pages docs 2023-05-14 16:36:18 -05:00

Bossy

nimble install bossy

Github Actions

API reference

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")