-
Notifications
You must be signed in to change notification settings - Fork 277
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
Add common option --change-output-adv #5155
Add common option --change-output-adv #5155
Conversation
Hi @garnier-quentin, |
8f460d5
to
efbfa9d
Compare
push @{$self->{change_output_adv}}, { | ||
expr => $expr, | ||
short_output => $short_output, | ||
exit_code => defined($exit_code) && $exit_code ne '' && $self->{errors}->{uc($exit_code)} ? uc($exit_code) : undef |
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.
If you use OK here, it will return 0 => false => exit_code will be set to undef ;-)
I'll use defined() in the final PR.
EDIT: done #5379
Pull request replaced with #5379 |
Community contributors
Description
Add a common option to change the short output and the exit code at the same time.
CTOR-820
Type of change
How this pull request can be tested ?
Checklist