3 unstable releases

Uses old Rust 2015

0.1.0 Oct 29, 2016
0.0.2 Dec 15, 2015
0.0.1 Dec 14, 2015

#571 in Cargo plugins

MIT/Apache

21KB
421 lines

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

Dependencies

~280KB