Skip to content

Commit

Permalink
[BREAKING] ae.utils.funopt: Be case sensitive by default
Browse files Browse the repository at this point in the history
Rationale:

- The old behavior was accidental.

- This prevented specifying options / switches that differ only by
  name, e.g. -f / -F.

Changes required:

- If users of your ae.utils.funopt program relied on case
  insensitivity of option or switch names, the old behavior can be
  restored by explicitly specifying config.caseInsensitive.
  • Loading branch information
CyberShadow committed Mar 12, 2024
1 parent f9a8ad9 commit a139fff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils/funopt.d
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ if (isCallable!FUN)

getopt(args,
std.getopt.config.bundling,
std.getopt.config.caseSensitive,
getOptArgs.tupleof,
"h|help", &help,
);
Expand Down

0 comments on commit a139fff

Please sign in to comment.