mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-05 16:10:41 -07:00
launcher: option to make command line args take precedence (#327)
## Link to GitHub Issue, if one exists Fixes #190 ## Description of change When `-cmdoverride` is specified, any command line arguments are taken first before merging with what is in the config file. ## Testing Still testing...
This commit is contained in:
@@ -246,6 +246,7 @@ namespace launcher {
|
||||
LovePlusPrinterOutputOverwrite,
|
||||
LovePlusPrinterOutputFormat,
|
||||
LovePlusPrinterJPGQuality,
|
||||
OptionConflictResolution,
|
||||
};
|
||||
|
||||
enum class OptionsCategory {
|
||||
@@ -257,6 +258,8 @@ namespace launcher {
|
||||
};
|
||||
}
|
||||
|
||||
extern bool USE_CMD_OVERRIDE;
|
||||
|
||||
const std::vector<std::string> &get_categories(Options::OptionsCategory category);
|
||||
const std::vector<OptionDefinition> &get_option_definitions();
|
||||
std::unique_ptr<std::vector<Option>> parse_options(int argc, char *argv[]);
|
||||
|
||||
Reference in New Issue
Block a user