From ab69ef2db44b6c4b7f00283d52d38fbe71d16c42 Mon Sep 17 00:00:00 2001 From: Devin J. Pohly Date: Sun, 2 Apr 2023 06:10:40 -0500 Subject: Count occurrences of flags (was "Add .count type for flags") (#96) Breaking change: parseEx now counts the number of occurrences of flag parameters (those with takes_value == .none) and returns the count as a u8. Users of the library will need to change if (arg_result.my_flag) to if (arg_result.my_flag != 0) --- example/README.md.template | 1 + 1 file changed, 1 insertion(+) (limited to 'example/README.md.template') diff --git a/example/README.md.template b/example/README.md.template index 696c598..34bff56 100644 --- a/example/README.md.template +++ b/example/README.md.template @@ -14,6 +14,7 @@ in the release notes. * Short arguments `-a` * Chaining `-abc` where `a` and `b` does not take values. + * Multiple specifications are tallied (e.g. `-v -v`). * Long arguments `--long` * Supports both passing values using spacing and `=` (`-a 100`, `-a=100`) * Short args also support passing values with no spacing or `=` (`-a100`) -- cgit v1.2.3