-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes for version 0.2.0 Testing, new documentation, new output formats, deprecate @beginarguments
- Loading branch information
1 parent
2a194c8
commit 1d07e54
Showing
16 changed files
with
734 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
push!(LOAD_PATH,"../src/") | ||
prepend!(LOAD_PATH, ["../src/"]) | ||
|
||
using Documenter | ||
using ArgMacros | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
# ArgMacros | ||
# constants.jl | ||
|
||
const usage_symbol = Symbol("@helpusage") | ||
const description_symbol = Symbol("@helpdescription") | ||
const epilog_symbol = Symbol("@helpepilog") | ||
const arghelp_symbol = Symbol("@arghelp") | ||
const USAGE_SYMBOL = Symbol("@helpusage") | ||
const DESCRIPTION_SYMBOL = Symbol("@helpdescription") | ||
const EPILOG_SYMBOL = Symbol("@helpepilog") | ||
const ARGHELP_SYMBOL = Symbol("@arghelp") | ||
|
||
const argument_required_symbol = Symbol("@argumentrequired") | ||
const argument_default_symbol = Symbol("@argumentdefault") | ||
const argument_optional_symbol = Symbol("@argumentoptional") | ||
const argument_flag_symbol = Symbol("@argumentflag") | ||
const argument_count_symbol = Symbol("@argumentcount") | ||
const flagged_symbols = [argument_required_symbol, argument_default_symbol, argument_optional_symbol, | ||
argument_flag_symbol, argument_count_symbol] | ||
const ARGUMENT_REQUIRED_SYMBOL = Symbol("@argumentrequired") | ||
const ARGUMENT_DEFAULT_SYMBOL = Symbol("@argumentdefault") | ||
const ARGUMENT_OPTIONAL_SYMBOL = Symbol("@argumentoptional") | ||
const ARGUMENT_FLAG_SYMBOL = Symbol("@argumentflag") | ||
const ARGUMENT_COUNT_SYMBOL = Symbol("@argumentcount") | ||
const FLAGGED_SYMBOLS = [ARGUMENT_REQUIRED_SYMBOL, ARGUMENT_DEFAULT_SYMBOL, ARGUMENT_OPTIONAL_SYMBOL, | ||
ARGUMENT_FLAG_SYMBOL, ARGUMENT_COUNT_SYMBOL] | ||
|
||
const positional_required_symbol = Symbol("@positionalrequired") | ||
const positional_default_symbol = Symbol("@positionaldefault") | ||
const positional_optional_symbol = Symbol("@positionaloptional") | ||
const positional_optional_symbols = [positional_default_symbol, positional_optional_symbol] | ||
const POSITIONAL_REQUIRED_SYMBOL = Symbol("@positionalrequired") | ||
const POSITIONAL_DEFAULT_SYMBOL = Symbol("@positionaldefault") | ||
const POSITIONAL_OPTIONAL_SYMBOL = Symbol("@positionaloptional") | ||
const POSITIONAL_OPTIONAL_SYMBOLS = [POSITIONAL_DEFAULT_SYMBOL, POSITIONAL_OPTIONAL_SYMBOL] |
Oops, something went wrong.
1d07e54
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
Release notes:
New argument output formats: output directly as a struct, NamedTuple, or Dict
Some speed improvements, ~12% on testing benchmark for cold start including Julia 1.5.1 startup time
Old
@beginarguments
macro deprecated1d07e54
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/21334
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: