All Versions
52
Latest Version
Avg Release Cycle
34 days
Latest Release
1062 days ago

Changelog History
Page 5

  • v0.2.1 Changes

    February 11, 2018
    • ๐Ÿ›  Fix a bug around enum tuple and the about message in the global help by @TeXitoi
    • ๐Ÿ›  Fix #65 by @TeXitoi
  • v0.2.0 Changes

    February 10, 2018

    ๐Ÿ’ฅ Breaking changes

    Don't special case u64 by @SergioBenitez

    ๐Ÿ“œ If you are using a u64 in your struct to get the number of occurence of a flag, you should now add parse(from_occurrences) on the flag.

    For example

    #[structopt(short = "v", long = "verbose")]
    verbose: u64,
    

    must be changed by

    #[structopt(short = "v", long = "verbose", parse(from_occurrences))]
    verbose: u64,
    

    ๐Ÿ‘€ This feature was surprising as shown in #30. Using the parse feature seems much more natural.

    ๐Ÿ”„ Change the signature of Structopt::from_clap to take its argument by reference by @TeXitoi

    There was no reason to take the argument by value. Most of the StructOpt users will not be impacted by this change. If you are using StructOpt::from_clap, just add a & before the argument.

    Fail if attributes are not used by @TeXitoi

    ๐Ÿ“œ StructOpt was quite fuzzy in its attribute parsing: it was only searching for interresting things, e. g. something like #[structopt(foo(bar))] was accepted but not used. It now fails the compilation.

    You should have nothing to do here. This breaking change may highlight some missuse that can be bugs.

    In future versions, if there is cases that are not highlighed, they will be considerated as bugs, not breaking changes.

    ๐Ÿ‘‰ Use raw() wrapping instead of _raw suffixing by @TeXitoi

    The syntax of raw attributes is changed to improve the syntax.

    You have to change foo_raw = "bar", baz_raw = "foo" by raw(foo = "bar", baz = "foo") or raw(foo = "bar"), raw(baz = "foo").

    ๐Ÿ†• New features

    • โž• Add parse(from_occurrences) parser by @SergioBenitez
    • ๐Ÿ‘Œ Support 1-uple enum variant as subcommand by @TeXitoi
    • structopt-derive crate is now an implementation detail, structopt reexport the custom derive macro by @TeXitoi
    • โž• Add the StructOpt::from_iter method by @Kerollmops

    ๐Ÿ“š Documentation

    • ๐Ÿ‘Œ Improve doc by @bestouff
    • ๐Ÿ“š All the documentation is now on the structopt crate by @TeXitoi
  • v0.1.7 Changes

    January 23, 2018
    • ๐Ÿ‘ Allow opting out of clap default features by @ski-csis
  • v0.1.6 Changes

    November 25, 2017
  • v0.1.5 Changes

    November 14, 2017
    • ๐Ÿ›  Fix a bug with optional subsubcommand and Enum by @TeXitoi
  • v0.1.4 Changes

    November 09, 2017
    • ๐Ÿ“œ Implement custom string parser from either &str or &OsStr by @kennytm
  • v0.1.3 Changes

    November 01, 2017
  • v0.1.2 Changes

    November 01, 2017
    • ๐Ÿ›  Fix bugs #24 and #25 by @TeXitoi
    • ๐Ÿ‘Œ Support of methods with something else that a string as argument thanks to _raw suffix by @Flakebi
  • v0.1.1 Changes

    September 22, 2017
    • ๐Ÿ‘ Better formating of multiple authors by @killercup
  • v0.1.0 Changes

    July 17, 2017