New Features and Changelog
Release 2.0.0
2024-12-22
Breaking change
- Added the field
cli_valto the exported typeArgumentValues.
New features
- Support for (extensible) parsing of
Datestypes in a package extension.
Release 1.2.0
2024-12-19
Warning
- The package extension for
Dateswas not properly tested, therefore this version is not recommended. Usev2.0instead, orv1.1.2. Sorry.
New features
- Added a package extension for parsing some common Date and Time representations
Other changes
- Set the minimal supported Julia version to
v1.10(current LTS).
Release 1.1.2
05.12.2024
Changes
- Added package docstring.
Release 1.1.1
04.12.2024
Fixes
- Now correctly accepts negative values for numerical arguments.
Release 1.1.0
28.07.2024
New features
- Function
colorprintnow supports keywordsbold,italic,underlineandblink, and accepts bothStringandSymbolas itscolorarg.
Release 1.0.0 - changes as compared to SimpleArgParse
13.07.2024
Breaking changes
- Renamed exported/public mutating functions, e.g.
add_example => add_example!. - Mutating functions do not return
ArgumentParseranymore: They return eithernothing, or anException. - Limited the number of exported functions.
- Hashmap keys no more used, therefore
get_keyfunction removed. - Removed
has_keyfunction - usehaskeyinstead. - Removed
requiredfield ofArgumentParser: If a default value provided, then argument is obviously optional, otherwise considered required. - Removed
authors,documentation,repository, andlicensefields ofArgumentParser: Should you need them, seeExample 4and the filelegacy_parser.jl. - Minimal
Juliaversion set tov1.9. - Anything forgotten?..
New features
- Support for (extensible) validators (example).
- Support for extensible parsers (example).
- Support for positional arguments (example).
- Support for use from console apps (example).
- The added function
initparsersimplifies initilalization of nested structs. - The added function
args_pairsmakes it possible get all arguments at once as pairs[argname => argvalue]. - Depending on value of
throw_on_exceptionfield, functions processing the input would either throw on erroneous input, or return anExceptionobject for a less disruptive processing downstream. - Anything forgotten?..
Other changes
- Precompile package using
PrecompileTools.jlto improve startup time. - General code refactoring.
- Made use of
publickeyword introduced in the comingJulia v1.11. - Test suite extended and now includes
Aqua.jltesting, too. - Extensive
Documenter.jl-based documentation you are reading now. - Examples added.
Related packages
- As already mentioned, this package is a fork of
SimpleArgParse. - The popular ArgParse offers much of the same functionality and more.
Comonicon, a CLI (Command Line Interface) generator.Fireis a library for creating simple CLI from julia function definitions.mce(Maurice) CLI - The Julia Language project manager, with useful functionality for beginners and advanced programmers ... currently in the 'Alpha' phase.- The package GivEmExel relies heavily onto
YAArguParserand has been the stimulus for it's development.
Likes & dislikes?
Star on GitHub, open an issue, contact me on Julia Discourse.
Copyright and License
© 2024 Eben60
Portions of this software are based in part on the work by Adam Erickson
© 2024 Adam Erickson
MIT License (see separate file LICENSE)