mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Start getting design together
First and foremost are the Generate options, which are populated with functions similar to ListSystems and ListSources.
This commit is contained in:
@@ -52,7 +52,7 @@ namespace SabreTools
|
||||
// Determine which switches are enabled (with values if necessary)
|
||||
bool help = false, import = false, generate = false, convert = false,
|
||||
listsys = false, listsrc = false, norename = false, old = false,
|
||||
log = false, genall = false, add = false, rem = false;
|
||||
log = false, genall = false, add = false, rem = false, skip = false;
|
||||
string systems = "", sources = "", input = "", manu = "", url = "";
|
||||
foreach (string arg in args)
|
||||
{
|
||||
@@ -71,6 +71,7 @@ namespace SabreTools
|
||||
log = log || (arg == "-l" || arg == "--log");
|
||||
old = old || (arg == "-old" || arg == "--romvault");
|
||||
norename = norename || (arg == "-nr" || arg == "--no-rename");
|
||||
skip = skip || (arg == "--skip");
|
||||
|
||||
// User input strings
|
||||
systems = (arg.StartsWith("system=") && systems == "" ? arg.Split('=')[1] : systems);
|
||||
@@ -89,6 +90,12 @@ namespace SabreTools
|
||||
input == "" ? arg : input);
|
||||
}
|
||||
|
||||
// If skip is set, it's being called from the UI so we just exit
|
||||
if (skip)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// If more than one switch is enabled or help is set, show the help screen
|
||||
if (help || !(import ^ generate ^ listsys ^ listsrc ^ genall ^ add ^ rem))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user