Skip to content

Commit c3d6a1c

Browse files
committed
iox-#2130 Use 'std::abort' instead of 'std::quick_exit'
1 parent 10d4de6 commit c3d6a1c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

iceoryx_hoofs/cli/include/iox/cli/option_definition.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ class OptionDefinition
3737
/// @brief The constructor.
3838
/// @param[in] programDescription The description to the program. Will be printed in the help.
3939
/// @param[in] onFailureCallback callback which is called when parse fails, if nothing is
40-
/// defined std::quick_exit(EXIT_FAILURE) is called
40+
/// defined std::abort() is called
4141
explicit OptionDefinition(
4242
const OptionDescription_t& programDescription,
43-
const function<void()>& onFailureCallback = [] { std::quick_exit(EXIT_FAILURE); }) noexcept;
43+
const function<void()>& onFailureCallback = [] { std::abort(); }) noexcept;
4444

4545
/// @brief Adds a command line switch argument
4646
/// Calls the onFailureCallback when the option was already added or the shortOption and longOption are

iceoryx_hoofs/cli/include/iox/cli_definition.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
char** argv, \
114114
const iox::cli::OptionDescription_t& programDescription, \
115115
const uint64_t argcOffset = 1U, \
116-
const ::iox::function<void()>& onFailureCallback = [] { std::quick_exit(EXIT_FAILURE); }) \
116+
const ::iox::function<void()>& onFailureCallback = [] { std::abort(); }) \
117117
{ \
118118
::iox::cli::OptionManager optionManager(programDescription, onFailureCallback); \
119119
return Name(optionManager, argc, argv, argcOffset); \

0 commit comments

Comments
 (0)