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

Deprecated retired options #358

Merged
merged 11 commits into from
Dec 5, 2019
Prev Previous commit
Next Next commit
fix formatting on retired.cpp
  • Loading branch information
phlptp committed Dec 2, 2019
commit 0037ca5b8a7384ab623208629ffdb3caf5515a00
2 changes: 1 addition & 1 deletion examples/retired.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ int main(int argc, char **argv) {

CLI::deprecate_option(opt2, "--not_deprecated");

CLI11_PARSE(app, argc, argv);
CLI11_PARSE(app, argc, argv);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many other examples do a std::cout at the end, to show what is going on. Does that make sense here as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe something that prints out if the '--not_deprecated` or no options were passed, just so there is always guaranteed to be some output?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good suggestion, I like it!

}