-
Notifications
You must be signed in to change notification settings - Fork 361
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
"App:allow_extras(true)" calls are ignored when parsing ini files #70
Comments
Okay; I'm not sure why you'd want extra arguments in an ini file, where they should go, and if that should be the same setting as extra arguments on a command line... I'll let you look into it and propose a solution. Please include at least a minimal example of how it would be useful. It might need a dedicated setting, though. |
The use case is as follows: We have an application that on startup selects and dynamically loads a library based on a command line argument. The specific library selected requires additional settings (arguments) which are provided via command line argument or config file. Thus, before we load the library it is not possible to know which additional command line arguments might be required. The solution to this problem is to parse the arguments twice. The first time we are only interested in determining which library should be loaded and if |
Thanks for the merge! |
Edit: it does work by setting set_config_extras(true). Sorry for the warning, but maybe useful to someone in the future. Is it possible this is still/again the case? If I run a minimal ini file and set allow_extras(true) on the parent app, I still get 'INI was not able to parse X' |
When calling
App:allow_extras(true)
to allow for extra (undefined) arguments passed to CLI11, this call is ignored when the extra argument is located in an ini-file.I am busy with more important things the coming few weeks but I am willing to look into solving this problem when I have the time. Probably early next month.
The text was updated successfully, but these errors were encountered: