#getopts #no-std #getopts-macro #getopts-options

no-std getopts-macro

Using macros to concisely define the getopts

4 releases

new 0.1.3 May 2, 2025
0.1.2 Apr 4, 2025
0.1.1 Mar 15, 2025
0.1.0 Mar 15, 2025

#888 in Rust patterns

Download history 224/week @ 2025-03-12 32/week @ 2025-03-19 2/week @ 2025-03-26 158/week @ 2025-04-02 27/week @ 2025-04-09 3/week @ 2025-04-16 33/week @ 2025-04-23

222 downloads per month

MIT license

14KB
290 lines

Using macros to concisely define the getopts

use getopts_macro::getopts_options;

let _options = getopts_options! {
    -z --zero           "...";
    -v --verbose*       "...";
    -T --threads=NUM    "...";
    -i --ignore*=FILE   "...";
    -h --help*          "...";
    -V --version*       "...";
};

Dependencies

~1.5MB
~21K SLoC