[SabreTools, DatFile] Get flag usage and override working for sort/sort-depot/verify/verify-depot

This commit is contained in:
Matt Nadareski
2017-02-03 16:59:31 -08:00
parent f75920e879
commit 0d9259ddc1
6 changed files with 152 additions and 14 deletions

View File

@@ -1231,6 +1231,26 @@ namespace SabreTools
"Set a header skipper to use, blank means all",
FeatureType.String,
null));
verify.AddFeature("dat-merged", new Feature(
new List<string>() { "-dm", "--dat-merged" },
"Force checking merged sets",
FeatureType.Flag,
null));
verify.AddFeature("dat-split", new Feature(
new List<string>() { "-ds", "--dat-split" },
"Force checking split sets",
FeatureType.Flag,
null));
verify.AddFeature("dat-nonmerged", new Feature(
new List<string>() { "-dnm", "--dat-nonmerged" },
"Force checking non-merged sets",
FeatureType.Flag,
null));
verify.AddFeature("dat-fullnonmerged", new Feature(
new List<string>() { "-df", "--dat-fullnonmerged" },
"Force checking fully non-merged sets",
FeatureType.Flag,
null));
// Create the Verify Depot feature
Feature verifyDepot = new Feature(
@@ -1253,6 +1273,26 @@ namespace SabreTools
"Set a header skipper to use, blank means all",
FeatureType.String,
null));
verifyDepot.AddFeature("dat-merged", new Feature(
new List<string>() { "-dm", "--dat-merged" },
"Force checking merged sets",
FeatureType.Flag,
null));
verifyDepot.AddFeature("dat-split", new Feature(
new List<string>() { "-ds", "--dat-split" },
"Force checking split sets",
FeatureType.Flag,
null));
verifyDepot.AddFeature("dat-nonmerged", new Feature(
new List<string>() { "-dnm", "--dat-nonmerged" },
"Force checking non-merged sets",
FeatureType.Flag,
null));
verifyDepot.AddFeature("dat-fullnonmerged", new Feature(
new List<string>() { "-df", "--dat-fullnonmerged" },
"Force checking fully non-merged sets",
FeatureType.Flag,
null));
// Now, add all of the main features to the Help object
help.Add("Help", helpFeature);