All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
0.5.0 - 2022-06-04
- The
eq-separator
build feature is no longer enabled by default. - Small changes to the
Display
output forError
.
0.4.2 - 2021-06-03
- Ignore long options when parsing short options when
combined-flags
feature is enabled. Thanks to @riquito. Arguments::contains
docs. Thanks to @jneem.
0.4.1 - 2021-05-03
combined-flags
feature. Thanks to @alexwennerberg.
0.4.0 - 2021-01-03
Arguments::opt_free_from_*
.
Arguments::finish
no longer returns an error and simply returns remaining arguments as is.Arguments::free_from_*
methods no longer check that argument doesn't start with-
.Arguments::free_from_*
methods returnT
instead ofOption<T>
now. UseArguments::opt_free_from_*
instead.
Arguments::free
andArguments::free_os
. You should useArguments::free_from_*
methods or parse them manually after callingArguments::finish
.Error::UnusedArgsLeft
. This should be handled by the caller now.
0.3.4 - 2020-08-09
short-space-opt
build feature. Thanks to @hdamron17.
0.3.3 - 2020-06-26
values_from_str
,values_from_fn
andvalues_from_os_str
.
Those functions can be used to parse arguments like:
--file /path1 --file /path2 --file /path3
But not--file /path1 /path2 /path3
.
0.3.2 - 2020-06-15
eq-separator
build feature.
0.3.1 - 2020-01-08
Arguments::subcommand
. Thanks to @matklad.
0.3.0 - 2019-09-23
- Required arguments support.
Error::MissingOption
when option is required but not present.
- Rename
value_from_str
intoopt_value_from_str
. - Rename
value_from_fn
intoopt_value_from_fn
. - Rename
value_from_os_str
intoopt_value_from_os_str
. value_from_str
,value_from_fn
andvalue_from_os_str
will returnT
and notOption<T>
from now.
0.2.0 - 2019-07-26
- Non UTF-8 arguments support.
free_from_str
,free_from_fn
andfree_from_os_str
.value_from_os_str
.
value_from_fn
allows any error type that implementsDisplay
now and not onlyString
.from_args
->from_vec
. And it acceptsVec<OsString>
now.- The
Error
enum.
- Do not panic while parsing non UTF-8 arguments.