- FIX: Internal: add missing cast to
{.nimcall.}
to move beyond things deprecated since Nim 0.18
- FIX: Changed an internal invocation of
do:
todo ():
to satisfy RFC 486
- BREAKING CHANGE: You can now use hyphens in both
command("...")
andarg("...")
names. (#83)
- FIX: Added a
.help
field toShortCircuit
errors so that you can get subcommand help within an exception handler (#62)
- BREAKING CHANGE: No longer export
macros
when importingargparse
. Fixes #73
- NEW: Parse result objects will now have a
OPTION_opt
attribute that is anOption[string]
. This can be used to inspect if the option was actually given rather than blank. (#68) - FIX: When
required=true
for an option, passing a value via environment variable now fulfills the requirement. (#67) - FIX: Fix deprecation warning: use
delete(s, first..last)
; delete is deprecated (#69)
- FIX: Removed program name from default subcommand help text
- FIX: Restore ability to call
parse()
without args (#64)
- BREAKING CHANGE: Calling
parse()
with-h
/--help
flags will now raise aShortCircuit
error instead of returning options with the.help
attribute set. - NEW: Removed
argparse_help
and other shortcircuiting flags from the parser options object since they are no longer accessible anyway. - NEW: You can now access subcommand options with
parse()
. (#60) - FIX: Required options no longer override
-h
/--help
shortcircuitry (#57) - FIX: Fix parsing of options that combine key and value into a single command-line token.
- NEW: You can now use
--
to stop further flag/option parsing so that remaining command line parameters are considered arguments. - NEW: It's easy now to have the argument help text display the runtime name of the application using the special
{prog}
string within help text. To get the new runtime name behavior, callnewParser
without a string name. (Fixes #33) - NEW: Options can now be marked as required. (#31)
- FIX: Works with Nim 1.0.x again.
- FIX: Support hidden args again.
- FIX: Add documentation and examples back.
- BREAKING CHANGE: Default values for
option()
andarg()
are now given asOption
types. - BREAKING CHANGE: argparse no longer compiles on 1.0.x versions of Nim
- NEW: Added a changelog!
- FIX: Better error thrown when an option is lacking a value (#29)
- FIX: Better error for when args are missing (#18)
- FIX: You can now pass
-
as a value to args and options (#40)
- No changelog data prior to this.