Skip to content

Negative argument flags - #115

Merged
SpectraL519 merged 8 commits into
cpp-argon-v5from
neg-flags
Oct 20, 2026
Merged

SpectraL519 merged 8 commits into
cpp-argon-v5from
neg-flags

Conversation

@SpectraL519

Copy link
Copy Markdown
Owner
  • Added predefined reset_all, reset_parsed, and store actions
  • Moved the elements in argon::action_type namespace to argon::action
  • Extended the argument class with a negative attribute setter that defines the argument's negative flag prefix and negative actions
  • Aligned the argument_parser::add_flag functions to use a reset_parsed + store(true) on-flag action instead of an implicit true value to allow for proper negative behaviour
  • Replaced the argument::action methods with argument::actions methods that accept a variadic number of actions

Comment thread include/argon/action/predefined.hpp Resolved
Comment thread include/argon/argument.hpp Resolved
Comment thread include/argon/argument.hpp Resolved
Comment thread include/argon/argument.hpp Resolved
Comment thread include/argon/argument.hpp Resolved
Comment thread include/argon/argument_parser.hpp Resolved
Comment thread include/argon/argument_parser.hpp Resolved
Comment thread include/argon/argument_parser.hpp Resolved

@SpectraL519 SpectraL519 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

ok

@SpectraL519
SpectraL519 merged commit 4fdf143 into cpp-argon-v5 Oct 20, 2026
9 checks passed
@SpectraL519
SpectraL519 deleted the neg-flags branch October 20, 2026 17:59
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.

1 participant