You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The virtual method handle_local_options returns a glib::ExitCode, it is special cased so that the application exits when the return value is positive (e.g. ExitCode::FAILUE, ExitCode::SUCCESS) and continues to run when when negative.
Returning (-1).into() is an option, but it is not very nice.
The text was updated successfully, but these errors were encountered:
@A6GibKm Want to provide a PR for this? Docs say this:
* Returns: an exit code. If you have handled your options and want
* to exit the process, return a non-negative option, 0 for success,
* and a positive value for failure. To continue, return -1 to let
* the default option processing continue.
Now this just needs to be wrapped into meaningful types. All negative values are the same (default processing), 0 is success but no default processing, all values > 0 are errors and returned like that
The virtual method
handle_local_options
returns aglib::ExitCode
, it is special cased so that the application exits when the return value is positive (e.g. ExitCode::FAILUE, ExitCode::SUCCESS) and continues to run when when negative.Returning
(-1).into()
is an option, but it is not very nice.The text was updated successfully, but these errors were encountered: