subcmd 0.1.0

Cargo like subcommand parser
Documentation

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