Skip to content

guzba/bossy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simpler way to work with command line arguments.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

Generated from treeform/nimtemplate