Added a --no-hidraw option to negate hidraw=true if it's set in a config file.
The way the argument parser is set up, it's impossible to tell if an argument has been set explicitly by a user or not. This made it a bit difficult to set hidraw back to false on the command line if it was set to true in a config file. Reparsing the command line into a supplied namespace seemed to do the trick.
This problem still exists in the controllers parsing.
I usually get around this problem by explicitly finding and setting defaults somewhere outside of the argument parser. Having a default setter class which has values and defaults added to it alongside the parser might be a way to go. Ideas?
Added a --no-hidraw option to negate hidraw=true if it's set in a config file.
The way the argument parser is set up, it's impossible to tell if an argument has been set explicitly by a user or not. This made it a bit difficult to set hidraw back to false on the command line if it was set to true in a config file. Reparsing the command line into a supplied namespace seemed to do the trick.
This problem still exists in the controllers parsing.
I usually get around this problem by explicitly finding and setting defaults somewhere outside of the argument parser. Having a default setter class which has values and defaults added to it alongside the parser might be a way to go. Ideas?