Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename all mutating functions/macros by appending a ! #92

Merged
merged 1 commit into from
Jan 24, 2020
Merged

Conversation

carlobaldassi
Copy link
Owner

The most important change is likely @add_arg_table@add_arg_table!.
The others are add_arg_table!, add_arg_group!, set_default_arg_group!, while import_settings! was done in a previous commit.
(A major version bump seems like a good opportunity to finally fix this.)

Adds deprecation warnings for the exported ones so that existing codes shouldn't break (at least the tests don't...).
A slightly annoying side-effect is that in order to properly deprecate @add_arg_table we must add an explicit dependency on Logging.

There's also a minor change in import_settings! signature.

E.g. add_arg_table -> add_arg_table! etc.
Create deprecation warnings for the exported ones.
@codecov-io
Copy link

codecov-io commented Jan 24, 2020

Codecov Report

Merging #92 into master will decrease coverage by 0.39%.
The diff coverage is 78.94%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master      #92     +/-   ##
=========================================
- Coverage   96.31%   95.92%   -0.4%     
=========================================
  Files           4        5      +1     
  Lines        1195     1201      +6     
=========================================
+ Hits         1151     1152      +1     
- Misses         44       49      +5
Impacted Files Coverage Δ
src/ArgParse.jl 100% <ø> (ø) ⬆️
src/deprecated.jl 0% <0%> (ø)
src/parsing.jl 96.91% <100%> (ø) ⬆️
src/settings.jl 96.69% <94.73%> (+0.32%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 831e07c...bec09b4. Read the comment docs.

@carlobaldassi carlobaldassi merged commit 9212a44 into master Jan 24, 2020
@carlobaldassi carlobaldassi deleted the depr branch January 24, 2020 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants