onlyargs

Only argument parsing! Nothing more.

MIT License

Downloads
8.3K
Stars
13
onlyargs - 0.2.0

Published by parasyte 8 months ago

Improvements:

  • Added support for multi-value arguments by passing the argument on the CLI multiple times. (#37).

Breaking changes:

  • #[positional] is now required to define the positional args vector. Any "non-positional" vector will be treated as a named multi-value argument. (#37)
onlyargs - onlyargs_derive 0.1.4 Latest Release

Published by parasyte 8 months ago

Fixes:

  • Fixes defaults for float and integer. (#34)
    • Addresses a From<i32> compiler error introduced in 0.1.3.
    • Negative numbers are still not working.
  • Fixes compile error when the derived struct contains a field called name. (#34)
onlyargs - 0.1.3

Published by parasyte 9 months ago

Improvements:

  • Added impl_help!() and impl_version!() macros to provide generic HELP and VERSION strings for OnlyArgs trait impls. (#14)
  • Added #[footer = "..."] attributes to onlyargs_derive that provides context to the bottom of the help message. (#25)

Fixes:

  • Fixes the application name and version number printed in the help message with onlyargs_derive. (#14)
  • Allow indentation to appear in doc comments with onlyargs_derive. (#22)
  • Fixes #[default(...)] attribute in onlyargs_derive for bool, PathBuf, and OsString types. (#27)
    • Numeric defaults may need to be annotated with type information to avoid a compile error.

Contributors 💖:

  • @kod-kristoff
onlyargs - 0.1.2

Published by parasyte over 1 year ago

Fixes:

  • Fixed padding on #[long] args in help text. (#7)
onlyargs - 0.1.1

Published by parasyte over 1 year ago

Improvements:

  • Added an example to onlyargs_derive documentation. (#4)

Fixes:

  • The derive macro can now be used in library crates. (#4)
  • The README should now be available on crates.io (#3)
onlyargs - 0.1.0

Published by parasyte over 1 year ago

Initial release!