ArgAction::RunFn #6005
Replies: 2 comments 1 reply
-
Could you provide an example signature and a use case? I'm not quite seeing how this is intending to be used. We've found that a large API makes the discovery of features harder which has me interested in exploring how a request like this could help other use cases so we can get more benefit out of the harder discovery cost. |
Beta Was this translation helpful? Give feedback.
-
In two of my applications (and apparently I have to write it in a third and fourth) I have arguments --print-default-config and --write-default-config. They're currently ArgAction::SetTrue and main function checks if they're set to true, if so, it runs the function and exits. I think it would be cleaner to just have it run a function |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This ArgAction will make the argument cause a function to be ran and then application exits
Beta Was this translation helpful? Give feedback.
All reactions