PackageTrack
Sign in Get early access

pico-args

An ultra simple CLI arguments parser.

0.5.0 69M downloads/mo #1014 most downloaded on crates.io RazrFalcon/pico-args

What this package is like to depend on

Last release 4 years ago

no release in 18 months

Release timing varies

gaps range from 2 weeks to 12 months

Nearly every release is documented

notes for 10 of 11 stable releases

Nothing withdrawn

no release was ever pulled

7 years old

11 releases · first in 2019

0 releases in the last 12 months

see the full history below

Release timeline

11 releases · Jul 2019 to Jun 2022
2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 11
  1. 0.5.0 04 Jun 2022
    Release notes

    Changed

    • The eq-separator build feature is no longer enabled by default.
    • Small changes to the Display output for Error.
    Open source →
  2. 0.4.2 03 Jun 2021
    Release notes

    Fixed

    • Ignore long options when parsing short options when combined-flags feature is enabled. Thanks to @riquito.
    • Arguments::contains docs. Thanks to @jneem.
    Open source →
  3. 0.4.1 03 May 2021
    Release notes

    Added

    Open source →
  4. 0.4.0 03 Jan 2021
    Release notes

    Added

    • Arguments::opt_free_from_*.

    Changed

    • 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 return T instead of Option<T> now. Use Arguments::opt_free_from_* instead.

    Removed

    • Arguments::free and Arguments::free_os. You should use Arguments::free_from_* methods or parse them manually after calling Arguments::finish.
    • Error::UnusedArgsLeft. This should be handled by the caller now.
    Open source →
  5. 0.3.4 09 Aug 2020
    Release notes

    Added

    • short-space-opt build feature. Thanks to @hdamron17.
    Open source →
  6. 0.3.3 26 Jun 2020
    Release notes

    Added

    • values_from_str, values_from_fn and values_from_os_str.<br> Those functions can be used to parse arguments like:<br> --file /path1 --file /path2 --file /path3<br> But not --file /path1 /path2 /path3.
    Open source →
  7. 0.3.2 15 Jun 2020
    Release notes

    Added

    • eq-separator build feature.
    Open source →
  8. 0.3.1 08 Jan 2020
    Release notes

    Added

    • Arguments::subcommand. Thanks to @matklad.
    Open source →
  9. 0.3.0 23 Sep 2019
    Release notes

    Added

    • Required arguments support.
    • Error::MissingOption when option is required but not present.

    Changed

    • Rename value_from_str into opt_value_from_str.
    • Rename value_from_fn into opt_value_from_fn.
    • Rename value_from_os_str into opt_value_from_os_str.
    • value_from_str, value_from_fn and value_from_os_str will return T and not Option<T> from now.
    Open source →
  10. 0.2.0 26 Jul 2019
    Release notes

    Added

    • Non UTF-8 arguments support.
    • free_from_str, free_from_fn and free_from_os_str.
    • value_from_os_str.

    Changed

    • value_from_fn allows any error type that implements Display now and not only String.
    • from_args -> from_vec. And it accepts Vec<OsString> now.
    • The Error enum.

    Fixed

    • Do not panic while parsing non UTF-8 arguments.
    Open source →
  11. 0.1.0 21 Jul 2019

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive