Skip to content

Cargo / Git's style subcommand parser

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

samdolt/subcmd-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

License

Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.

About

Cargo / Git's style subcommand parser

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages