subcmd

Crates.iosubcmd
lib.rssubcmd
version0.1.0
sourcesrc
created_at2015-12-14 21:54:34.230441
updated_at2016-10-29 15:59:20.511101
descriptionCargo like subcommand parser
homepagehttps://github.com/samdolt/subcmd-rs/
repositoryhttps://github.com/samdolt/subcmd-rs/
max_upload_size
id3631
size22,169
Sam Dolt (samdolt)

documentation

https://samdolt.github.io/subcmd-rs/

README

Status

Build Status App Veyor Status Rust min version Crates.io version Clippy Linting Result

Cargo style subcommand

This library help to build an app that use a similar command line interface as Cargo or Git:

$ myproject build --with --some --option
$ myproject clean
$ myproject --help

i.e. Automaticaly pass argv to a corresponding subcommand (here build or clean).

Feature

  • Subcommand parser and runner
  • Autogenerated help for myproject --help and myproject -h
  • Hint when a command with a typo is typing
  • Colored error message in Linux and OS X.

Futur plans

  • Subcommand help with myproject help subcommand

  • Search for myproject-cmd-subcommand in the $PATH if there is no built-in subcommand.

  • Allow project wide option like myproject --verbose clean instead of myproject clean --verbose

Commit count: 44

cargo fmt