Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
Add Command Line Argument to plugin?
(1/1)
yasman:
I've searched, but can't seem to find..
Short of re-compiling the source of course, is there a way to change the arguments of a specific plugin?
In this code I would like to add --force to cppcheck?
Thanks for any advice!
oBFusCATed:
No, you can't, you have to change the code and them compile it.
stahta01:
In theory yes, create a script file with same name as exec the CB program calls the script file.
And, the script file calls the exec. Note, in this exact instance it might not work.
NOTE: This is NOT for adding a command line argument to the plugin; but, adding a command line argument to the exe called by the plugin.
Tim S.
MortenMacFly:
--- Quote from: oBFusCATed on January 29, 2012, 02:06:28 pm ---No, you can't, you have to change the code and them compile it.
--- End quote ---
True, but it should be very easy to patch. E.g. prompting for additional parameter before running cppcheck should be a 3-5 liner. Patches are welcome.
yasman:
Thanks for the replies, and yes it should be an easy patch..
After looking at the code, I found this dirty workaround...
I added the following include path (although I'm sure it will break my build...):
--- Quote --- ./" --force "./
--- End quote ---
Worked good to add the argument I wanted. Thanks to all.
Navigation
[0] Message Index
Go to full version