Commit graph

6 commits

Author SHA1 Message Date
Guillaume Pinot
be60de036b structopt reexport structopt_derive
As using structopt without structopt_derive is quite meaningless, reexport
structopt_derive, symplifying the usage.

Inspired by the failure crate.

fix #45
2018-02-03 16:55:43 +01:00
Guillaume Pinot
7975343a03 Support 1-uple enum variant as subcommand
This is a breaking change as it modifies the StructOpt trait.

fix #38
2018-02-03 15:32:55 +01:00
Guillaume Pinot
227d1fa73c fix bug with optional subsubcommand and Enum 2017-11-14 15:18:13 +01:00
William Yao
810831cfe1 add support for unit-variant subcommands 2017-07-17 11:45:31 +02:00
William Yao
91fb4a40e4 allow for documentation to be placed on subcommands 2017-07-17 11:45:31 +02:00
William Yao
e00e263f23 add test for subcommand parsing (texitoi/structopt#1) 2017-07-17 11:45:31 +02:00