[ALL] Update Help (WIP)

This commit is contained in:
Matt Nadareski
2018-01-23 15:55:04 -08:00
parent c4ec849e05
commit b22968a2d2
7 changed files with 1111 additions and 987 deletions

View File

@@ -22,6 +22,7 @@ namespace RombaSharp
// Create the Help feature
Feature helpFeature = new Feature(
"Help",
new List<string>() { "-?", "-h", "--help" },
"Show this help",
FeatureType.Flag,
@@ -29,11 +30,13 @@ namespace RombaSharp
// Create the Archive feature
Feature archive = new Feature(
"Archive",
"archive",
"Adds ROM files from the specified directories to depot",
FeatureType.Flag,
null);
archive.AddFeature("only-needed", new Feature(
archive.AddFeature(new Feature(
"only-needed",
"-only-needed",
"Only archive ROM files in database",
FeatureType.Flag,
@@ -41,11 +44,13 @@ namespace RombaSharp
// Create the Build feature
Feature build = new Feature(
"Build",
"build",
"For each specified DAT file it creates TZip files",
FeatureType.Flag,
null);
build.AddFeature("copy", new Feature(
build.AddFeature(new Feature(
"copy",
"-copy",
"Copy files instead of rebuilding",
FeatureType.Flag,
@@ -53,6 +58,7 @@ namespace RombaSharp
// Create the Stats feature
Feature stats = new Feature(
"Stats",
"dbstats",
"Prints db stats",
FeatureType.Flag,
@@ -60,6 +66,7 @@ namespace RombaSharp
// Create the Rescan Depots feature
Feature rescanDepots = new Feature(
"Rescan Depots",
"depot-rescan",
"Rescan a specific depot to get new information",
FeatureType.Flag,
@@ -67,11 +74,13 @@ namespace RombaSharp
// Create the Diffdat feature
Feature diffdat = new Feature(
"Diffdat",
"diffdat",
"Creates a DAT file for entries found in the new DAT",
FeatureType.Flag,
null);
diffdat.AddFeature("new", new Feature(
diffdat.AddFeature(new Feature(
"new",
"-new",
"DAT to compare to",
FeatureType.String,
@@ -79,11 +88,13 @@ namespace RombaSharp
// Create the Dir2Dat feature
Feature dir2dat = new Feature(
"Dir2Dat",
"dir2dat",
"Creates a DAT file for the specified input directory",
FeatureType.Flag,
null);
dir2dat.AddFeature("out", new Feature(
dir2dat.AddFeature(new Feature(
"out",
"-out",
"Filename to save out to",
FeatureType.String,
@@ -91,6 +102,7 @@ namespace RombaSharp
// Create the Export feature
Feature export = new Feature(
"Export",
"export",
"Exports db to export.csv",
FeatureType.Flag,
@@ -98,6 +110,7 @@ namespace RombaSharp
// Create the Fixdat feature
Feature fixdat = new Feature(
"Fixdat",
"fixdat",
"For each specified DAT file it creates a fix DAT",
FeatureType.Flag,
@@ -105,6 +118,7 @@ namespace RombaSharp
// Create the Import feature
Feature import = new Feature(
"Import",
"import",
"Import a database from a formatted CSV file",
FeatureType.Flag,
@@ -112,6 +126,7 @@ namespace RombaSharp
// Create the Lookup feature
Feature lookup = new Feature(
"Lookup",
"lookup",
"For each specified hash, look up available information",
FeatureType.Flag,
@@ -119,6 +134,7 @@ namespace RombaSharp
// Create the Mmmstats feature
Feature memstats = new Feature(
"Memstats",
"memstats",
"Prints memory stats",
FeatureType.Flag,
@@ -126,16 +142,19 @@ namespace RombaSharp
// Create the Merge feature
Feature merge = new Feature(
"Merge",
"merge",
"Merges a depot into the existing one",
FeatureType.Flag,
null);
merge.AddFeature("depot", new Feature(
merge.AddFeature(new Feature(
"depot",
"-depot",
"Depot path to merge into",
FeatureType.String,
null));
merge.AddFeature("only-needed", new Feature(
merge.AddFeature(new Feature(
"only-needed",
"-only-needed",
"Only merge files in if needed",
FeatureType.Flag,
@@ -143,6 +162,7 @@ namespace RombaSharp
// Create the Miss feature
Feature miss = new Feature(
"Miss",
"miss",
"For each specified DAT file, create miss and have file",
FeatureType.Flag,
@@ -150,11 +170,13 @@ namespace RombaSharp
// Create the Purge Backup feature
Feature purgeBackup = new Feature(
"Purge Backup",
"purge-backup",
"Moves DAT index entries for orphaned DATs",
FeatureType.Flag,
null);
purgeBackup.AddFeature("log-only", new Feature(
purgeBackup.AddFeature(new Feature(
"log-only",
"-log-only",
"Only write out actions to log",
FeatureType.Flag,
@@ -162,11 +184,13 @@ namespace RombaSharp
// Create the Purge Delete feature
Feature purgeDelete = new Feature(
"Purge Delete",
"purge-delete",
"Deletes DAT index entries for orphaned DATs",
FeatureType.Flag,
null);
purgeDelete.AddFeature("log-only", new Feature(
purgeDelete.AddFeature(new Feature(
"log-only",
"-log-only",
"Only write out actions to log",
FeatureType.Flag,
@@ -174,6 +198,7 @@ namespace RombaSharp
// Create the Refresh DATs feature
Feature refreshDats = new Feature(
"Refresh DATs",
"refresh-dats",
"Refreshes the DAT index from the files in the DAT root",
FeatureType.Flag,
@@ -181,6 +206,7 @@ namespace RombaSharp
// Create the Progress feature
Feature progress = new Feature(
"Progress",
"progress",
"Shows progress of currently running command [OBSOLETE]",
FeatureType.Flag,
@@ -188,31 +214,32 @@ namespace RombaSharp
// Create the Shutdown feature
Feature shutdown = new Feature(
"Shutdown",
"shutdown",
"Gracefully shuts down server [OBSOLETE]",
FeatureType.Flag,
null);
// Now, add all of the main features to the Help object
help.Add("Help", helpFeature);
help.Add("Archive", archive);
help.Add("Build", build);
help.Add("Stats", stats);
help.Add("Rescan Depots", rescanDepots);
help.Add("Diffdat", diffdat);
help.Add("Dir2Dat", dir2dat);
help.Add("Export", export);
help.Add("Fixdat", fixdat);
help.Add("Import", import);
help.Add("Lookup", lookup);
help.Add("Memstats", memstats);
help.Add("Merge", merge);
help.Add("Miss", miss);
help.Add("Purge Backup", purgeBackup);
help.Add("Purge Delete", purgeDelete);
help.Add("Refresh DATs", refreshDats);
help.Add("Progress", progress);
help.Add("Shutdown", shutdown);
help.Add(helpFeature);
help.Add(archive);
help.Add(build);
help.Add(stats);
help.Add(rescanDepots);
help.Add(diffdat);
help.Add(dir2dat);
help.Add(export);
help.Add(fixdat);
help.Add(import);
help.Add(lookup);
help.Add(memstats);
help.Add(merge);
help.Add(miss);
help.Add(purgeBackup);
help.Add(purgeDelete);
help.Add(refreshDats);
help.Add(progress);
help.Add(shutdown);
return help;
}