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
Is any possible POCO way to display help on required option absence?
Currently POCO throws Poco::Util::MissedOptionException which is handled in run(int argc, char** argv) unconditionally.
Is it possible to add either callback or flag to display help() on missed required option case?
Something like
ServerApplication or Application ... run(int argc, char** argv)
{
...
catch (Poco::Util::MissedOptionException)
{
// log exception as usual
...
if (_showHelp || _missedOptCallback)
{
// show help here...
}
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is any possible POCO way to display help on required option absence?
Currently POCO throws Poco::Util::MissedOptionException which is handled in run(int argc, char** argv) unconditionally.
Is it possible to add either callback or flag to display help() on missed required option case?
Something like
Beta Was this translation helpful? Give feedback.
All reactions