Commit graph

5 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
Sergio Benitez
35423c96c4 Add 'parse(from_occurrences)' parser. Don't special case 'u64'. (#48) 2018-02-03 15:15:03 +01:00
Guillaume Pinot
227d1fa73c fix bug with optional subsubcommand and Enum 2017-11-14 15:18:13 +01:00
William Yao
b295234d5d add test suite for nested subcommands (texitoi/structopt#1) 2017-07-17 11:45:31 +02:00