Files
SabreTools/SabreTools/SabreTools.Help.cs
Matt Nadareski eb71c16454 [SabreTools, Flags, DatFile, Utilities, README] Stat output
Add new input that mirrors the input for DAT formats. This also introduces the SSV statistics output format
2018-03-12 21:18:25 -07:00

2739 lines
92 KiB
C#

using System.Collections.Generic;
using SabreTools.Library.Data;
using SabreTools.Library.Help;
namespace SabreTools
{
public partial class SabreTools
{
#region Private Flag features
private static Feature _addBlankFilesFlag
{
get
{
return new Feature(
"add-blank-files",
new List<string>() { "-ab", "--add-blank-files" },
"Output blank files for folders",
FeatureType.Flag,
longDescription: "If this flag is set, then blank entries will be created for each of the empty directories in the source. This is useful for tools that require all folders be accounted for in the output DAT.");
}
}
private static Feature _addDateFlag
{
get
{
return new Feature(
"add-date",
new List<string>() { "-ad", "--add-date" },
"Add dates to items, where posible",
FeatureType.Flag,
longDescription: "If this flag is set, then the Date will be appended to each file information in the output DAT. The output format is standardized as \"yyyy/MM/dd HH:mm:ss\".");
}
}
private static Feature _allStatsFlag
{
get
{
return new Feature(
"all-stats",
new List<string>() { "-as", "--all-stats" },
"Write all statistics to all available formats [DEPRECIATED]",
FeatureType.Flag,
longDescription: "Output all statistical information to all available formats. [DEPRECIATED]");
}
} // TODO: Remove
private static Feature _archivesAsFilesFlag
{
get
{
return new Feature(
"archives-as-files",
new List<string>() { "-aaf", "--archives-as-files" },
"Treat archives as files",
FeatureType.Flag,
longDescription: "Instead of trying to enumerate the files within archives, treat the archives as files themselves. This is good for uncompressed sets that include archives that should be read as-is.");
}
}
private static Feature _baddumpColumnFlag
{
get
{
return new Feature(
"baddump-column",
new List<string>() { "-bc", "--baddump-column" },
"Add baddump stats to output",
FeatureType.Flag,
longDescription: "Add a new column or field for counting the number of baddumps in the DAT.");
}
}
private static Feature _baseFlag
{
get
{
return new Feature(
"base",
new List<string>() { "-ba", "--base" },
"Use source DAT as base name for outputs",
FeatureType.Flag,
longDescription: "If splitting an entire folder of DATs, some output files may be normally overwritten since the names would be the same. With this flag, the original DAT name is used in the output name, in the format of \"Original Name(Dir - Name)\". This can be used in conjunction with --short to output in the format of \"Original Name (Name)\" instead.");
}
}
private static Feature _baseReplaceFlag
{
get
{
return new Feature(
"base-replace",
new List<string>() { "-br", "--base-replace" },
"Replace from base DATs in order",
FeatureType.Flag,
longDescription: "By default, no item names are changed except when there is a merge occurring. This flag enables users to define a DAT or set of base DATs to use as \"replacements\" for all input DATs. Note that the first found instance of an item in the base DAT(s) will be used and all others will be discarded. If no additional flag is given, it will default to updating names.");
}
}
private static Feature _chdsAsFilesFlag
{
get
{
return new Feature(
"chds-as-files",
new List<string>() { "-ic", "--chds-as-files" },
"Treat CHDs as regular files",
FeatureType.Flag,
longDescription: "Normally, CHDs would be processed using their internal hash to compare against the input DATs. This flag forces all CHDs to be treated like regular files.");
}
}
private static Feature _cleanFlag
{
get
{
return new Feature(
"clean",
new List<string>() { "-clean", "--clean" },
"Clean game names according to WoD standards",
FeatureType.Flag,
longDescription: "Game names will be sanitized to remove what the original WoD standards deemed as unneeded information, such as parenthesized or bracketed strings.");
}
}
private static Feature _copyFilesFlag
{
get
{
return new Feature(
"copy-files",
new List<string>() { "-cf", "--copy-files" },
"Copy files to the temp directory before parsing",
FeatureType.Flag,
longDescription: "If this flag is set, then all files that are going to be parsed are moved to the temporary directory before being hashed. This can be helpful in cases where the temp folder is located on an SSD and the user wants to take advantage of this.");
}
}
private static Feature _csvFlag
{
get
{
return new Feature(
"csv",
new List<string>() { "-csv", "--csv" },
"Output in Comma-Separated Value format [DEPRECIATED]",
FeatureType.Flag,
longDescription: "Output all statistical information in standardized CSV format. [DEPRECIATED]");
}
} // TODO: Remove
private static Feature _datDeviceNonMergedFlag
{
get
{
return new Feature(
"dat-device-non-merged",
new List<string>() { "-dnd", "--dat-device-non-merged" },
"Create device non-merged sets",
FeatureType.Flag,
longDescription: "Preprocess the DAT to have child sets contain all items from the device references. This is incompatible with the other --dat-X flags.");
}
}
private static Feature _datFullNonMergedFlag
{
get
{
return new Feature(
"dat-full-non-merged",
new List<string>() { "-df", "--dat-full-non-merged" },
"Create fully non-merged sets",
FeatureType.Flag,
longDescription: "Preprocess the DAT to have child sets contain all items from the parent sets based on the cloneof and romof tags as well as device references. This is incompatible with the other --dat-X flags.");
}
}
private static Feature _datMergedFlag
{
get
{
return new Feature(
"dat-merged",
new List<string>() { "-dm", "--dat-merged" },
"Force creating merged sets",
FeatureType.Flag,
longDescription: "Preprocess the DAT to have parent sets contain all items from the children based on the cloneof tag. This is incompatible with the other --dat-X flags.");
}
}
private static Feature _datNonMergedFlag
{
get
{
return new Feature(
"dat-non-merged",
new List<string>() { "-dnm", "--dat-non-merged" },
"Force creating non-merged sets",
FeatureType.Flag,
longDescription: "Preprocess the DAT to have child sets contain all items from the parent set based on the romof and cloneof tags. This is incompatible with the other --dat-X flags.");
}
}
private static Feature _datSplitFlag
{
get
{
return new Feature(
"dat-split",
new List<string>() { "-ds", "--dat-split" },
"Force creating split sets",
FeatureType.Flag,
longDescription: "Preprocess the DAT to remove redundant files between parents and children based on the romof and cloneof tags. This is incompatible with the other --dat-X flags.");
}
}
private static Feature _dedupFlag
{
get
{
return new Feature(
"dedup",
new List<string>() { "-dd", "--dedup" },
"Enable deduping in the created DAT",
FeatureType.Flag,
longDescription: "For all outputted DATs, allow for hash deduping. This makes sure that there are effectively no duplicates in the output files. Cannot be used with game dedup.");
}
}
private static Feature _deleteFlag
{
get
{
return new Feature(
"delete",
new List<string>() { "-del", "--delete" },
"Delete fully rebuilt input files",
FeatureType.Flag,
longDescription: "Optionally, the input files, once processed and fully matched, can be deleted. This can be useful when the original file structure is no longer needed or if there is limited space on the source drive.");
}
}
private static Feature _depotFlag
{
get
{
return new Feature(
"depot",
new List<string>() { "-dep", "--depot" },
"Assume directories are romba depots",
FeatureType.Flag,
longDescription: "Normally, input directories will be treated with no special format. If this flag is used, all input directories will be assumed to be romba-style depots.");
}
}
private static Feature _depreciatedFlag
{
get
{
return new Feature(
"depreciated",
new List<string>() { "-dpc", "--depreciated" },
"Output 'game' instead of 'machine'",
FeatureType.Flag,
longDescription: "By default, Logiqx XML DATs output with the more modern \"machine\" tag for each set. This flag allows users to output the older \"game\" tag instead, for compatibility reasons. [Logiqx only]");
}
}
private static Feature _descriptionAsNameFlag
{
get
{
return new Feature(
"description-as-name",
new List<string>() { "-dan", "--description-as-name" },
"Use description instead of machine name",
FeatureType.Flag,
longDescription: "By default, all DATs are converted exactly as they are input. Enabling this flag allows for the machine names in the DAT to be replaced by the machine description instead. In most cases, this will result in no change in the output DAT, but a notable example would be a software list DAT where the machine names are generally DOS-friendly while the description is more complete.");
}
}
private static Feature _diffAgainstFlag
{
get
{
return new Feature(
"diff-against",
new List<string>() { "-dag", "--diff-against" },
"Diff all inputs against a set of base DATs",
FeatureType.Flag,
"This flag will enable a special type of diffing in which a set of base DATs are used as a comparison point for each of the input DATs. This allows users to get a slightly different output to cascaded diffing, which may be more useful in some cases. This is heavily influenced by the diffing model used by Romba.");
}
}
private static Feature _diffAllFlag
{
get
{
return new Feature(
"diff-all",
new List<string>() { "-di", "--diff-all" },
"Create diffdats from inputs (all standard outputs)",
FeatureType.Flag,
longDescription: "By default, all DATs are processed individually with the user-specified flags. With this flag enabled, input DATs are diffed against each other to find duplicates, no duplicates, and only in individuals.");
}
}
private static Feature _diffCascadeFlag
{
get
{
return new Feature(
"diff-cascade",
new List<string>() { "-dc", "--diff-cascade" },
"Enable cascaded diffing",
FeatureType.Flag,
longDescription: "This flag allows for a special type of diffing in which the first DAT is considered a base, and for each additional input DAT, it only leaves the files that are not in one of the previous DATs. This can allow for the creation of rollback sets or even just reduce the amount of duplicates across multiple sets.");
}
}
private static Feature _diffDuplicatesFlag
{
get
{
return new Feature(
"diff-duplicates",
new List<string>() { "-did", "--diff-duplicates" },
"Create diffdat containing just duplicates",
FeatureType.Flag,
longDescription: "All files that have duplicates outside of the original DAT are included.");
}
}
private static Feature _diffIndividualsFlag
{
get
{
return new Feature(
"diff-individuals",
new List<string>() { "-dii", "--diff-individuals" },
"Create diffdats for individual DATs",
FeatureType.Flag,
longDescription: "All files that have no duplicates outside of the original DATs are put into DATs that are named after the source DAT.");
}
}
private static Feature _diffNoDuplicatesFlag
{
get
{
return new Feature(
"diff-no-duplicates",
new List<string>() { "-din", "--diff-no-duplicates" },
"Create diffdat containing no duplicates",
FeatureType.Flag,
longDescription: "All files that have no duplicates outside of the original DATs are included.");
}
}
private static Feature _diffReverseCascadeFlag
{
get
{
return new Feature(
"diff-reverse-cascade",
new List<string>() { "-drc", "--diff-reverse-cascade" },
"Enable reverse cascaded diffing",
FeatureType.Flag,
longDescription: "This flag allows for a special type of diffing in which the last DAT is considered a base, and for each additional input DAT, it only leaves the files that are not in one of the previous DATs. This can allow for the creation of rollback sets or even just reduce the amount of duplicates across multiple sets.");
}
}
private static Feature _excludeOfFlag
{
get
{
return new Feature(
"exclude-of",
new List<string>() { "-xof", "--exclude-of" },
"Exclude romof, cloneof, sampleof tags",
FeatureType.Flag,
longDescription: "If this flag is enabled, then the romof, cloneof, and sampleof tags will be omitted from the outputted DAT.");
}
}
private static Feature _extensionFlag
{
get
{
return new Feature(
"extension",
new List<string>() { "-es", "--extension" },
"Split DAT(s) by two file extensions",
FeatureType.Flag,
longDescription: "For a DAT, or set of DATs, allow for splitting based on a list of input extensions. This can allow for combined DAT files, such as those combining two separate systems, to be split. Files with any extensions not listed in the input lists will be included in both outputted DAT files.");
}
}
private static Feature _gameDedupFlag
{
get
{
return new Feature(
"game-dedup",
new List<string>() { "-gdd", "--game-dedup" },
"Enable deduping within games in the created DAT",
FeatureType.Flag,
longDescription: "For all outputted DATs, allow for hash deduping but only within the games, and not across the entire DAT. This makes sure that there are effectively no duplicates within each of the output sets. Cannot be used with standard dedup.");
}
}
private static Feature _gamePrefixFlag
{
get
{
return new Feature(
"game-prefix",
new List<string>() { "-gp", "--game-prefix" },
"Add game name as a prefix",
FeatureType.Flag,
longDescription: "This flag allows for the name of the game to be used as a prefix to each file.");
}
}
private static Feature _hashFlag
{
get
{
return new Feature(
"hash",
new List<string>() { "-hs", "--hash" },
"Split DAT(s) or folder by best-available hashes",
FeatureType.Flag,
longDescription: "For a DAT, or set of DATs, allow for splitting based on the best available hash for each file within. The order of preference for the outputted DATs is as follows: Nodump, SHA-512, SHA-384, SHA-256, SHA-1, MD5, CRC (or worse).");
}
}
private static Feature _hashOnlyFlag
{
get
{
return new Feature(
"hash-only",
new List<string>() { "-ho", "--hash-only" },
"Check files by hash only",
FeatureType.Flag,
longDescription: "This sets a mode where files are not checked based on name but rather hash alone. This allows verification of (possibly) incorrectly named folders and sets to be verified without worrying about the proper set structure to be there.");
}
}
private static Feature _htmlFlag
{
get
{
return new Feature(
"html",
new List<string>() { "-html", "--html" },
"Output in HTML format [DEPRECIATED]",
FeatureType.Flag,
longDescription: "Output all statistical information in standardized HTML format. [DEPRECIATED]");
}
} // TODO: Remove
private static Feature _individualFlag
{
get
{
return new Feature(
"individual",
new List<string>() { "-ind", "--individual" },
"Show individual statistics",
FeatureType.Flag,
longDescription: "Optionally, the statistics for each of the individual input DATs can be output as well.");
}
}
private static Feature _inplaceFlag
{
get
{
return new Feature(
"inplace",
new List<string>() { "-ip", "--inplace" },
"Write to the input directories, where possible",
FeatureType.Flag,
longDescription: "By default, files are written to the runtime directory (or the output directory, if set). This flag enables users to write out to the directory that the DATs originated from.");
}
}
private static Feature _inverseFlag
{
get
{
return new Feature(
"inverse",
new List<string>() { "-in", "--inverse" },
"Rebuild only files not in DAT",
FeatureType.Flag,
longDescription: "Instead of the normal behavior of rebuilding using a DAT, this flag allows the user to use the DAT as a filter instead. All files that are found in the DAT will be skipped and everything else will be output in the selected format.");
}
}
private static Feature _keepEmptyGamesFlag
{
get
{
return new Feature(
"keep-empty-games",
new List<string>() { "-keg", "--keep-empty-games" },
"Keep originally empty sets from the input(s)",
FeatureType.Flag,
longDescription: "Normally, any sets that are considered empty will not be included in the output, this flag allows these empty sets to be added to the output.");
}
}
private static Feature _levelFlag
{
get
{
return new Feature(
"level",
new List<string>() { "-ls", "--level" },
"Split a SuperDAT or folder by lowest available level",
FeatureType.Flag,
longDescription: "For a DAT, or set of DATs, allow for splitting based on the lowest available level of game name. That is, if a game name is top/mid/last, then it will create an output DAT for the parent directory \"mid\" in a folder called \"top\" with a game called \"last\".");
}
}
private static Feature _mergeFlag
{
get
{
return new Feature(
"merge",
new List<string>() { "-m", "--merge" },
"Merge the input DATs",
FeatureType.Flag,
longDescription: "By default, all DATs are processed individually with the user-specified flags. With this flag enabled, all of the input DATs are merged into a single output. This is best used with the dedup flag.");
}
}
private static Feature _noAutomaticDateFlag
{
get
{
return new Feature(
"no-automatic-date",
new List<string>() { "-b", "--no-automatic-date" },
"Don't include date in file name",
FeatureType.Flag,
longDescription: "Normally, the DAT will be created with the date in the file name in brackets. This flag removes that instead of the default.");
}
}
private static Feature _nodumpColumnFlag
{
get
{
return new Feature(
"nodump-column",
new List<string>() { "-nc", "--nodump-column" },
"Add statistics for nodumps to output",
FeatureType.Flag,
longDescription: "Add a new column or field for counting the number of nodumps in the DAT.");
}
}
private static Feature _noStoreHeaderFlag
{
get
{
return new Feature(
"no-store-header",
new List<string>() { "-nsh", "--no-store-header" },
"Don't store the extracted header",
FeatureType.Flag,
longDescription: "By default, all headers that are removed from files are backed up in the database. This flag allows users to skip that step entirely, avoiding caching the headers at all.");
}
}
private static Feature _notRunnableFlag
{
get
{
return new Feature(
"not-runnable",
new List<string>() { "-nrun", "--not-runnable" },
"Include only items that are not marked runnable",
FeatureType.Flag,
longDescription: "This allows users to include only unrunnable games.");
}
}
private static Feature _matchOfTagsFlag
{
get
{
return new Feature(
"match-of-tags",
new List<string>() { "-ofg", "--match-of-tags" },
"Allow cloneof and romof tags to match game name filters",
FeatureType.Flag,
longDescription: "If filter or exclude by game name is used, this flag will allow those filters to be checked against the romof and cloneof tags as well. This can allow for more advanced set-building, especially in arcade-based sets.");
}
}
private static Feature _onlySameFlag
{
get
{
return new Feature(
"only-same",
new List<string>() { "-ons", "--only-same" },
"Only update description if machine name matches description",
FeatureType.Flag,
longDescription: "Normally, updating the description will always overwrite if the machine names are the same. With this flag, descriptions will only be overwritten if they are the same as the machine names.");
}
}
private static Feature _outputAllFlag
{
get
{
return new Feature(
"output-all",
new List<string>() { "-oa", "--output-all" },
"Output in all formats [DEPRECIATED]",
FeatureType.Flag,
longDescription: "Output in all formats [DEPRECIATED]");
}
} // TODO: Remove
private static Feature _outputAttractmodeFlag
{
get
{
return new Feature(
"output-attractmode",
new List<string>() { "-oam", "--output-attractmode" },
"Output in AttractMode format [DEPRECIATED]",
FeatureType.Flag,
longDescription: "Output in AttractMode format [DEPRECIATED]");
}
} // TODO: Remove
private static Feature _outputCmpFlag
{
get
{
return new Feature(
"output-cmp",
new List<string>() { "-oc", "--output-cmp" },
"Output in CMP format [DEPRECIATED]",
FeatureType.Flag,
longDescription: "Output in ClrMamePro format [DEPRECIATED]");
}
} // TODO: Remove
private static Feature _outputCsvFlag
{
get
{
return new Feature(
"output-csv",
new List<string>() { "-ocsv", "--output-csv" },
"Output in CSV format [DEPRECIATED]",
FeatureType.Flag,
longDescription: "Output in CSV format [DEPRECIATED]");
}
} // TODO: Remove
private static Feature _outputDoscenterFlag
{
get
{
return new Feature(
"output-doscenter",
new List<string>() { "-od", "--output-doscenter" },
"Output in DOSCenter format [DEPRECIATED]",
FeatureType.Flag,
longDescription: "Output in DOSCenter format [DEPRECIATED]");
}
} // TODO: Remove
private static Feature _outputListromFlag
{
get
{
return new Feature(
"output-listrom",
new List<string>() { "-olr", "--output-listrom" },
"Output in MAME Listrom format [DEPRECIATED]",
FeatureType.Flag,
longDescription: "Output in MAME Listrom format [DEPRECIATED]");
}
} // TODO: Remove
private static Feature _outputListxmlFlag
{
get
{
return new Feature(
"output-listxml",
new List<string>() { "-olx", "--output-listxml" },
"Output in MAME Listxml format [DEPRECIATED]",
FeatureType.Flag,
longDescription: "Output in MAME Listxml format [DEPRECIATED]");
}
} // TODO: Remove
private static Feature _outputMd5Flag
{
get
{
return new Feature(
"output-md5",
new List<string>() { "-omd5", "--output-md5" },
"Output in MD5 format [DEPRECIATED]",
FeatureType.Flag,
longDescription: "Output in MD5 format [DEPRECIATED]");
}
} // TODO: Remove
private static Feature _outputMissFlag
{
get
{
return new Feature(
"output-miss",
new List<string>() { "-om", "--output-miss" },
"Output in Missfile format [DEPRECIATED]",
FeatureType.Flag,
longDescription: "Output in Missfile format [DEPRECIATED]");
}
} // TODO: Remove
private static Feature _outputOfflinelistFlag
{
get
{
return new Feature(
"output-offlinelist",
new List<string>() { "-ool", "--output-offlinelist" },
"Output in OfflineList format [DEPRECIATED]",
FeatureType.Flag,
longDescription: "Output in OfflineList format [DEPRECIATED]");
}
} // TODO: Remove
private static Feature _outputRomcenterFlag
{
get
{
return new Feature(
"output-romcenter",
new List<string>() { "-or", "--output-romcenter" },
"Output in RomCenter format [DEPRECIATED]",
FeatureType.Flag,
longDescription: "Output in RomCenter format [DEPRECIATED]");
}
} // TODO: Remove
private static Feature _outputSabredatFlag
{
get
{
return new Feature(
"output-sabredat",
new List<string>() { "-os", "--output-sabredat" },
"Output in SabreDat format [DEPRECIATED]",
FeatureType.Flag,
longDescription: "Output in SabreDat format [DEPRECIATED]");
}
} // TODO: Remove
private static Feature _outputSfvFlag
{
get
{
return new Feature(
"output-sfv",
new List<string>() { "-osfv", "--output-sfv" },
"Output in SFV format [DEPRECIATED]",
FeatureType.Flag,
longDescription: "Output in SFV format [DEPRECIATED]");
}
} // TODO: Remove
private static Feature _outputSha1Flag
{
get
{
return new Feature(
"output-sha1",
new List<string>() { "-osha1", "--output-sha1" },
"Output in SHA-1 format [DEPRECIATED]",
FeatureType.Flag,
longDescription: "Output in SHA-1 format [DEPRECIATED]");
}
} // TODO: Remove
private static Feature _outputSha256Flag
{
get
{
return new Feature(
"output-sha256",
new List<string>() { "-osha256", "--output-sha256" },
"Output in SHA-256 format [DEPRECIATED]",
FeatureType.Flag,
longDescription: "Output in SHA-256 format [DEPRECIATED]");
}
} // TODO: Remove
private static Feature _outputSha384Flag
{
get
{
return new Feature(
"output-sha384",
new List<string>() { "-osha384", "--output-sha384" },
"Output in SHA-256 format [DEPRECIATED]",
FeatureType.Flag,
longDescription: "Output in SHA-256 format [DEPRECIATED]");
}
} // TODO: Remove
private static Feature _outputSha512Flag
{
get
{
return new Feature(
"output-sha512",
new List<string>() { "-osha512", "--output-sha512" },
"Output in SHA-256 format [DEPRECIATED]",
FeatureType.Flag,
longDescription: "Output in SHA-256 format [DEPRECIATED]");
}
} // TODO: Remove
private static Feature _outputSoftwarelistFlag
{
get
{
return new Feature(
"output-softwarelist",
new List<string>() { "-osl", "--output-softwarelist" },
"Output in Softwarelist format [DEPRECIATED]",
FeatureType.Flag,
longDescription: "Output in Softwarelist format [DEPRECIATED]");
}
} // TODO: Remove
private static Feature _outputSsvFlag
{
get
{
return new Feature(
"output-ssv",
new List<string>() { "-ossv", "--output-ssv" },
"Output in SSV format [DEPRECIATED]",
FeatureType.Flag,
longDescription: "Output in SSV format [DEPRECIATED]");
}
} // TODO: Remove
private static Feature _outputTsvFlag
{
get
{
return new Feature(
"output-tsv",
new List<string>() { "-otsv", "--output-tsv" },
"Output in TSV format [DEPRECIATED]",
FeatureType.Flag,
longDescription: "Output in TSV format [DEPRECIATED]");
}
} // TODO: Remove
private static Feature _outputXmlFlag
{
get
{
return new Feature(
"output-xml",
new List<string>() { "-ox", "--output-xml" },
"Output in Logiqx XML format [DEPRECIATED]",
FeatureType.Flag,
longDescription: "Output in Logiqx XML format [DEPRECIATED]");
}
} // TODO: Remove
private static Feature _quickFlag
{
get
{
return new Feature(
"quick",
new List<string>() { "-qs", "--quick" },
"Enable quick scanning of archives",
FeatureType.Flag,
longDescription: "For all archives, if this flag is enabled, it will only use the header information to get the archive entries' file information. The upside to this is that it is the fastest option. On the downside, it can only get the CRC and size from most archive formats, leading to possible issues.");
}
}
private static Feature _quotesFlag
{
get
{
return new Feature(
"quotes",
new List<string>() { "-q", "--quotes" },
"Double-quote each item",
FeatureType.Flag,
longDescription: "This flag surrounds the item by double-quotes, not including the prefix or postfix.");
}
}
private static Feature _removeExtensionsFlag
{
get
{
return new Feature(
"remove-extensions",
new List<string>() { "-rme", "--remove-extensions" },
"Remove all extensions from all items",
FeatureType.Flag,
longDescription: "For each item, remove the extension.");
}
}
private static Feature _removeMd5Flag
{
get
{
return new Feature(
"remove-md5",
new List<string>() { "-rmd5", "--remove-md5" },
"Remove MD5 hashes from the output",
FeatureType.Flag,
longDescription: "By default, all available hashes will be written out to the DAT. This will remove all MD5 hashes from the output file(s).");
}
}
private static Feature _removeSha1Flag
{
get
{
return new Feature(
"remove-sha1",
new List<string>() { "-rsha1", "--remove-sha1" },
"Remove SHA-1 hashes from the output",
FeatureType.Flag,
longDescription: "By default, all available hashes will be written out to the DAT. This will remove all SHA-1 hashes from the output file(s).");
}
}
private static Feature _removeSha256Flag
{
get
{
return new Feature(
"remove-sha256",
new List<string>() { "-rsha256", "--remove-sha256" },
"Remove SHA-256 hashes from the output",
FeatureType.Flag,
longDescription: "By default, all available hashes will be written out to the DAT. This will remove all SHA-256 hashes from the output file(s).");
}
}
private static Feature _removeSha384Flag
{
get
{
return new Feature(
"remove-sha384",
new List<string>() { "-rsha384", "--remove-sha384" },
"Remove SHA-384 hashes from the output",
FeatureType.Flag,
longDescription: "By default, all available hashes will be written out to the DAT. This will remove all SHA-384 hashes from the output file(s).");
}
}
private static Feature _removeSha512Flag
{
get
{
return new Feature(
"remove-sha512",
new List<string>() { "-rsha512", "--remove-sha512" },
"Remove SHA-512 hashes from the output",
FeatureType.Flag,
longDescription: "By default, all available hashes will be written out to the DAT. This will remove all SHA-512 hashes from the output file(s).");
}
}
private static Feature _removeUnicodeFlag
{
get
{
return new Feature(
"remove-unicode",
new List<string>() { "-ru", "--remove-unicode" },
"Remove unicode characters from names",
FeatureType.Flag,
longDescription: "By default, the character set from the original file(s) will be used for item naming. This flag removes all Unicode characters from the item names, machine names, and machine descriptions.");
}
}
private static Feature _reverseBaseReplaceFlag
{
get
{
return new Feature(
"reverse-base-replace",
new List<string>() { "-rbr", "--reverse-base-replace" },
"Replace item names from base DATs in reverse",
FeatureType.Flag,
longDescription: "By default, no item names are changed except when there is a merge occurring. This flag enables users to define a DAT or set of base DATs to use as \"replacements\" for all input DATs. Note that the first found instance of an item in the last base DAT(s) will be used and all others will be discarded. If no additional flag is given, it will default to updating names.");
}
}
private static Feature _rombaFlag
{
get
{
return new Feature(
"romba",
new List<string>() { "-ro", "--romba" },
"Treat like a Romba depot (requires SHA-1)",
FeatureType.Flag,
longDescription: "This flag allows reading and writing of DATs and output files to and from a Romba-style depot. This also implies TorrentGZ input and output for physical files. Where appropriate, Romba depot files will be created as well.");
}
}
private static Feature _romsFlag
{
get
{
return new Feature(
"roms",
new List<string>() { "-r", "--roms" },
"Output roms to miss instead of sets",
FeatureType.Flag,
longDescription: "By default, the outputted file will include the name of the game so this flag allows for the name of the rom to be output instead. [Missfile only]");
}
}
private static Feature _runnableFlag
{
get
{
return new Feature(
"runnable",
new List<string>() { "-run", "--runnable" },
"Include only items that are marked runnable",
FeatureType.Flag,
longDescription: "This allows users to include only verified runnable games.");
}
}
private static Feature _scanAllFlag
{
get
{
return new Feature(
"scan-all",
new List<string>() { "-sa", "--scan-all" },
"Set scanning levels for all archives to 0",
FeatureType.Flag,
longDescription: "This flag is the short equivalent to -7z=0 -gz=0 -rar=0 -zip=0 wrapped up. Generally this will be helpful in all cases where the content of the rebuild folder is not entirely known or is known to be mixed.");
}
}
private static Feature _sceneDateStripFlag
{
get
{
return new Feature(
"scene-date-strip",
new List<string>() { "-sds", "--scene-date-strip" },
"Remove date from scene-named sets",
FeatureType.Flag,
longDescription: "If this flag is enabled, sets with \"scene\" names will have the date removed from the beginning. For example \"01.01.01-Game_Name-GROUP\" would become \"Game_Name-Group\".");
}
}
private static Feature _shortFlag
{
get
{
return new Feature(
"short",
new List<string>() { "-s", "--short" },
"Use short output names",
FeatureType.Flag,
longDescription: "Instead of using ClrMamePro-style long names for DATs, use just the name of the folder as the name of the DAT. This can be used in conjunction with --base to output in the format of \"Original Name (Name)\" instead.");
}
}
private static Feature _singleSetFlag
{
get
{
return new Feature(
"single-set",
new List<string>() { "-si", "--single-set" },
"All game names replaced by '!'",
FeatureType.Flag,
longDescription: "This is useful for keeping all roms in a DAT in the same archive or folder.");
}
}
private static Feature _sizeFlag
{
get
{
return new Feature(
"size",
new List<string>() { "-szs", "--size" },
"Split DAT(s) or folder by file sizes",
FeatureType.Flag,
longDescription: "For a DAT, or set of DATs, allow for splitting based on the sizes of the files, specifically if the type is a Rom (most item types don't have sizes).");
}
}
private static Feature _skipFirstOutputFlag
{
get
{
return new Feature(
"skip-first-output",
new List<string>() { "-sf", "--skip-first-output" },
"Skip output of first DAT",
FeatureType.Flag,
longDescription: "In times where the first DAT does not need to be written out a second time, this will skip writing it. This can often speed up the output process.");
}
}
private static Feature _skipArchivesFlag
{
get
{
return new Feature(
"skip-archives",
new List<string>() { "-ska", "--skip-archives" },
"Skip all archives",
FeatureType.Flag,
longDescription: "Skip any files that are treated like archives");
}
}
private static Feature _skipFilesFlag
{
get
{
return new Feature(
"skip-files",
new List<string>() { "-skf", "--skip-files" },
"Skip all non-archives",
FeatureType.Flag,
longDescription: "Skip any files that are not treated like archives");
}
}
private static Feature _skipMd5Flag
{
get
{
return new Feature(
"skip-md5",
new List<string>() { "-nm", "--skip-md5" },
"Don't include MD5 in output",
FeatureType.Flag,
longDescription: "This allows the user to skip calculating the MD5 for each of the files which will speed up the creation of the DAT.");
}
}
private static Feature _skipSha1Flag
{
get
{
return new Feature(
"skip-sha1",
new List<string>() { "-ns", "--skip-sha1" },
"Don't include SHA-1 in output",
FeatureType.Flag,
longDescription: "This allows the user to skip calculating the SHA-1 for each of the files which will speed up the creation of the DAT.");
}
}
private static Feature _skipSha256Flag
{
get
{
return new Feature(
"skip-sha256",
new List<string>() { "-ns256", "--skip-sha256" },
"Include SHA-256 in output", // TODO: Invert this later
FeatureType.Flag,
longDescription: "This allows the user to skip calculating the SHA-256 for each of the files which will speed up the creation of the DAT.");
}
}
private static Feature _skipSha384Flag
{
get
{
return new Feature(
"skip-sha384",
new List<string>() { "-ns384", "--skip-sha384" },
"Include SHA-384 in output", // TODO: Invert this later
FeatureType.Flag,
longDescription: "This allows the user to skip calculating the SHA-384 for each of the files which will speed up the creation of the DAT.");
}
}
private static Feature _skipSha512Flag
{
get
{
return new Feature(
"skip-sha512",
new List<string>() { "-ns512", "--skip-sha512" },
"Include SHA-512 in output", // TODO: Invert this later
FeatureType.Flag,
longDescription: "This allows the user to skip calculating the SHA-512 for each of the files which will speed up the creation of the DAT.");
}
}
private static Feature _superdatFlag
{
get
{
return new Feature(
"superdat",
new List<string>() { "-sd", "--superdat" },
"Enable SuperDAT creation",
FeatureType.Flag,
longDescription: "Set the type flag to \"SuperDAT\" for the output DAT as well as preserving the directory structure of the inputted folder, if applicable.");
}
}
private static Feature _tarFlag
{
get
{
return new Feature(
"tar",
new List<string>() { "-tar", "--tar" },
"Enable Tape ARchive output",
FeatureType.Flag,
longDescription: "Instead of outputting the files to folder, files will be rebuilt to Tape ARchive (TAR) files. This format is a standardized storage archive without any compression, usually used with other compression formats around it. It is widely used in backup applications and source code archives.");
}
}
private static Feature _textFlag
{
get
{
return new Feature(
"text",
new List<string>() { "-txt", "--text" },
"Output in generic text format [DEPRECIATED]",
FeatureType.Flag,
longDescription: "Output all statistical information in generic text format. If no other format flags are enabled, this is the default output. [DEPRECIATED]");
}
} // TODO: Remove
private static Feature _torrent7zipFlag
{
get
{
return new Feature(
"torrent-7zip",
new List<string>() { "-t7z", "--torrent-7zip" },
"Enable Torrent7Zip output",
FeatureType.Flag,
longDescription: "Instead of outputting the files to folder, files will be rebuilt to Torrent7Zip (T7Z) files. This format is based on the LZMA container format 7Zip, but with custom header information. This is currently unused by any major application. Currently does not produce proper Torrent-compatible outputs.");
}
}
private static Feature _torrentGzipFlag
{
get
{
return new Feature(
"torrent-gzip",
new List<string>() { "-tgz", "--torrent-gzip" },
"Enable Torrent GZip output",
FeatureType.Flag,
longDescription: "Instead of outputting the files to folder, files will be rebuilt to TorrentGZ (TGZ) files. This format is based on the GZip archive format, but with custom header information and a file name replaced by the SHA-1 of the file inside. This is primarily used by external tool Romba (https://github.com/uwedeportivo/romba), but may be used more widely in the future.");
}
}
private static Feature _torrentLrzipFlag
{
get
{
return new Feature(
"torrent-lrzip",
new List<string>() { "-tlrz", "--torrent-lrzip" },
"Enable Torrent Long-Range Zip output [UNIMPLEMENTED]",
FeatureType.Flag,
longDescription: "Instead of outputting the files to folder, files will be rebuilt to Torrent Long-Range Zip (TLRZ) files. This format is based on the LRZip file format as defined at https://github.com/ckolivas/lrzip but with custom header information. This is currently unused by any major application.");
}
}
private static Feature _torrentLz4Flag
{
get
{
return new Feature(
"torrent-lz4",
new List<string>() { "-tlz4", "--torrent-lz4" },
"Enable Torrent LZ4 output [UNIMPLEMENTED]",
FeatureType.Flag,
longDescription: "Instead of outputting the files to folder, files will be rebuilt to Torrent LZ4 (TLZ4) files. This format is based on the LZ4 file format as defined at https://github.com/lz4/lz4 but with custom header information. This is currently unused by any major application.");
}
}
private static Feature _torrentRarFlag
{
get
{
return new Feature(
"torrent-rar",
new List<string>() { "-trar", "--torrent-rar" },
"Enable Torrent RAR output [UNIMPLEMENTED]",
FeatureType.Flag,
longDescription: "Instead of outputting files to folder, files will be rebuilt to Torrent RAR (TRAR) files. This format is based on the RAR propietary format but with custom header information. This is currently unused by any major application.");
}
}
private static Feature _torrentXzFlag
{
get
{
return new Feature(
"torrent-xz",
new List<string>() { "-txz", "--torrent-xz" },
"Enable Torrent XZ output [UNSUPPORTED]",
FeatureType.Flag,
longDescription: "Instead of outputting files to folder, files will be rebuilt to Torrent XZ (TXZ) files. This format is based on the LZMA container format XZ, but with custom header information. This is currently unused by any major application. Currently does not produce proper Torrent-compatible outputs.");
}
}
private static Feature _torrentZipFlag
{
get
{
return new Feature(
"torrent-zip",
new List<string>() { "-tzip", "--torrent-zip" },
"Enable Torrent Zip output",
FeatureType.Flag,
longDescription: "Instead of outputting files to folder, files will be rebuilt to TorrentZip (TZip) files. This format is based on the ZIP archive format, but with custom header information. This is primarily used by external tool RomVault (http://www.romvault.com/) and is already widely used.");
}
}
private static Feature _torrentZpaqFlag
{
get
{
return new Feature(
"torrent-zpaq",
new List<string>() { "-tzpaq", "--torrent-zpaq" },
"Enable Torrent ZPAQ output [UNIMPLEMENTED]",
FeatureType.Flag,
longDescription: "Instead of outputting the files to folder, files will be rebuilt to Torrent ZPAQ (TZPAQ) files. This format is based on the ZPAQ file format as defined at https://github.com/zpaq/zpaq but with custom header information. This is currently unused by any major application.");
}
}
private static Feature _torrentZstdFlag
{
get
{
return new Feature(
"torrent-zstd",
new List<string>() { "-tzstd", "--torrent-zstd" },
"Enable Torrent Zstd output [UNIMPLEMENTED]",
FeatureType.Flag,
longDescription: "Instead of outputting the files to folder, files will be rebuilt to Torrent Zstd (TZstd) files. This format is based on the Zstd file format as defined at https://github.com/skbkontur/ZstdNet but with custom header information. This is currently unused by any major application.");
}
}
private static Feature _trimFlag
{
get
{
return new Feature(
"trim",
new List<string>() { "-trim", "--trim" },
"Trim file names to fit NTFS length",
FeatureType.Flag,
longDescription: "In the cases where files will have too long a name, this allows for trimming the name of the files to the NTFS maximum length at most.");
}
}
private static Feature _tsvFlag
{
get
{
return new Feature(
"tsv",
new List<string>() { "-tsv", "--tsv" },
"Output in Tab-Separated Value format [DEPRECIATED]",
FeatureType.Flag,
longDescription: "Output all statistical information in standardized TSV format. [DEPRECIATED]");
}
} // TODO: Remove
private static Feature _typeFlag
{
get
{
return new Feature(
"type",
new List<string>() { "-ts", "--type" },
"Split DAT(s) or folder by file types (rom/disk)",
FeatureType.Flag,
longDescription: "For a DAT, or set of DATs, allow for splitting based on the types of the files, specifically if the type is a rom or a disk.");
}
}
private static Feature _updateDatFlag
{
get
{
return new Feature(
"update-dat",
new List<string>() { "-ud", "--update-dat" },
"Output updated DAT to output directory",
FeatureType.Flag,
longDescription: "Once the files that were able to rebuilt are taken care of, a DAT of the files that could not be matched will be output to the output directory.");
}
}
private static Feature _updateDescriptionFlag
{
get
{
return new Feature(
"update-description",
new List<string>() { "-udd", "--update-description" },
"Update machine descriptions from base DATs",
FeatureType.Flag,
longDescription: "This flag enables updating of machine descriptions from base DATs.");
}
}
private static Feature _updateHashesFlag
{
get
{
return new Feature(
"update-hashes",
new List<string>() { "-uh", "--update-hashes" },
"Update hashes from base DATs",
FeatureType.Flag,
longDescription: "This flag enables updating of hashes from base DATs.");
}
}
private static Feature _updateManufacturerFlag
{
get
{
return new Feature(
"update-manufacturer",
new List<string>() { "-um", "--update-manufacturer" },
"Update machine manufacturers from base DATs",
FeatureType.Flag,
longDescription: "This flag enables updating of machine manufacturers from base DATs.");
}
}
private static Feature _updateNamesFlag
{
get
{
return new Feature(
"update-names",
new List<string>() { "-un", "--update-names" },
"Update item names from base DATs",
FeatureType.Flag,
longDescription: "This flag enables updating of item names from base DATs.");
}
}
private static Feature _updateYearFlag
{
get
{
return new Feature(
"update-year",
new List<string>() { "-uy", "--update-year" },
"Update machine years from base DATs",
FeatureType.Flag,
longDescription: "This flag enables updating of machine years from base DATs.");
}
}
#endregion
#region Private Int32 features
private static Feature _gzInt32Input
{
get
{
return new Feature(
"gz",
new List<string>() { "-gz", "--gz" },
"Set scanning level for GZip archives (default 1)",
FeatureType.Int32,
longDescription: @"Scan GZip archives in one of the following ways:
0 - Hash both archive and its contents
1 - Only hash contents of the archive
2 - Only hash archive itself (treat like a regular file)");
}
}
private static Feature _rarInt32Input
{
get
{
return new Feature(
"rar",
new List<string>() { "-rar", "--rar" },
"Set scanning level for RAR archives (default 1)",
FeatureType.Int32,
longDescription: @"Scan RAR archives in one of the following ways:
0 - Hash both archive and its contents
1 - Only hash contents of the archive
2 - Only hash archive itself (treat like a regular file)");
}
}
private static Feature _sevenZipInt32Input
{
get
{
return new Feature(
"7z",
new List<string>() { "-7z", "--7z" },
"Set scanning level for 7zip archives (default 1)",
FeatureType.Int32,
longDescription: @"Scan 7Zip archives in one of the following ways:
0 - Hash both archive and its contents
1 - Only hash contents of the archive
2 - Only hash archive itself (treat like a regular file)");
}
}
private static Feature _threadsInt32Input
{
get
{
return new Feature(
"threads",
new List<string>() { "-mt", "--threads" },
"Amount of threads to use (default = # cores)",
FeatureType.Int32,
longDescription: "Optionally, set the number of threads to use for the multithreaded operations. The default is the number of available machine threads; -1 means unlimited threads created.");
}
}
private static Feature _zipInt32Input
{
get
{
return new Feature(
"zip",
new List<string>() { "-zip", "--zip" },
"Set scanning level for Zip archives (default 1)",
FeatureType.Int32,
longDescription: @"Scan Zip archives in one of the following ways:
0 - Hash both archive and its contents
1 - Only hash contents of the archive
2 - Only hash archive itself (treat like a regular file)");
}
}
#endregion
#region Private Int64 features
private static Feature _radixInt64Input
{
get
{
return new Feature(
"radix",
new List<string>() { "-rad", "--radix" },
"Set the midpoint to split at",
FeatureType.Int64,
longDescription: "Set the size at which all roms less than the size are put in the first DAT, and everything greater than or equal goes in the second.");
}
}
#endregion
#region Private List<string> features
private static Feature _baseDatListInput
{
get
{
return new Feature(
"base-dat",
new List<string>() { "-bd", "--base-dat" },
"Add a base DAT for processing",
FeatureType.List,
longDescription: "Add a DAT or folder of DATs to the base set to be used for all operations. Multiple instances of this flag are allowed.");
}
}
private static Feature _crcListInput
{
get
{
return new Feature(
"crc",
new List<string>() { "-crc", "--crc" },
"Filter by CRC hash",
FeatureType.List,
longDescription: "Include only items with this CRC hash in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
private static Feature _datListInput
{
get
{
return new Feature(
"dat",
new List<string>() { "-dat", "--dat" },
"Input DAT to be used",
FeatureType.List,
longDescription: "User-supplied DAT for use in all operations. Multiple instances of this flag are allowed.");
}
}
private static Feature _extaListInput
{
get
{
return new Feature(
"exta",
new List<string>() { "-exta", "--exta" },
"Set extension to be included in first DAT",
FeatureType.List,
longDescription: "Set the extension to be used to populate the first DAT. Multiple instances of this flag are allowed.");
}
}
private static Feature _extbListInput
{
get
{
return new Feature(
"extb",
new List<string>() { "-extb", "--extb" },
"Set extension to be included in second DAT",
FeatureType.List,
longDescription: "Set the extension to be used to populate the second DAT. Multiple instances of this flag are allowed.");
}
}
private static Feature _gameDescriptionListInput
{
get
{
return new Feature(
"game-description",
new List<string>() { "-gd", "--game-description" },
"Filter by game description",
FeatureType.List,
longDescription: "Include only items with this game description in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
private static Feature _gameNameListInput
{
get
{
return new Feature(
"game-name",
new List<string>() { "-gn", "--game-name" },
"Filter by game name",
FeatureType.List,
longDescription: "Include only items with this game name in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
private static Feature _gameTypeListInput
{
get
{
return new Feature(
"game-type",
new List<string>() { "-gt", "--game-type" },
"Include only games with a given type",
FeatureType.List,
longDescription: @"Include only items with this game type in the output. Multiple instances of this flag are allowed.
Possible values are: None, Bios, Device, Mechanical");
}
}
private static Feature _itemNameListInput
{
get
{
return new Feature(
"item-name",
new List<string>() { "-rn", "--item-name" },
"Filter by item name",
FeatureType.List,
longDescription: "Include only items with this item name in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
private static Feature _itemTypeListInput
{
get
{
return new Feature(
"item-type",
new List<string>() { "-rt", "--item-type" },
"Filter by item type",
FeatureType.List,
longDescription: "Include only items with this item type in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
private static Feature _md5ListInput
{
get
{
return new Feature(
"md5",
new List<string>() { "-md5", "--md5" },
"Filter by MD5 hash",
FeatureType.List,
longDescription: "Include only items with this MD5 hash in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
private static Feature _notCrcListInput
{
get
{
return new Feature(
"not-crc",
new List<string>() { "-ncrc", "--not-crc" },
"Filter by not CRC hash",
FeatureType.List,
longDescription: "Include only items without this CRC hash in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
private static Feature _notGameDescriptionListInput
{
get
{
return new Feature(
"not-game-description",
new List<string>() { "-ngd", "--not-game-description" },
"Filter by not game description",
FeatureType.List,
longDescription: "Include only items without this game description in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
private static Feature _notGameNameListInput
{
get
{
return new Feature(
"not-game-name",
new List<string>() { "-ngn", "--not-game-name" },
"Filter by not game name",
FeatureType.List,
longDescription: "Include only items without this game name in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
private static Feature _notGameTypeListInput
{
get
{
return new Feature(
"not-game-type",
new List<string>() { "-ngt", "--not-game-type" },
"Exclude only games with a given type",
FeatureType.List,
longDescription: @"Include only items without this game type in the output. Multiple instances of this flag are allowed.
Possible values are: None, Bios, Device, Mechanical");
}
}
private static Feature _notItemNameListInput
{
get
{
return new Feature(
"not-item-name",
new List<string>() { "-nrn", "--not-item-name" },
"Filter by not item name",
FeatureType.List,
longDescription: "Include only items without this item name in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
private static Feature _notItemTypeListInput
{
get
{
return new Feature(
"not-item-type",
new List<string>() { "-nrt", "--not-item-type" },
"Filter by not item type",
FeatureType.List,
longDescription: "Include only items without this item type in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
private static Feature _notMd5ListInput
{
get
{
return new Feature(
"not-md5",
new List<string>() { "-nmd5", "--not-md5" },
"Filter by not MD5 hash",
FeatureType.List,
longDescription: "Include only items without this MD5 hash in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
private static Feature _notSha1ListInput
{
get
{
return new Feature(
"not-sha1",
new List<string>() { "-nsha1", "--not-sha1" },
"Filter by not SHA-1 hash",
FeatureType.List,
longDescription: "Include only items without this SHA-1 hash in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
private static Feature _notSha256ListInput
{
get
{
return new Feature(
"not-sha256",
new List<string>() { "-nsha256", "--not-sha256" },
"Filter by not SHA-256 hash",
FeatureType.List,
longDescription: "Include only items without this SHA-256 hash in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
private static Feature _notSha384ListInput
{
get
{
return new Feature(
"not-sha384",
new List<string>() { "-nsha384", "--not-sha384" },
"Filter by not SHA-384 hash",
FeatureType.List,
longDescription: "Include only items without this SHA-384 hash in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
private static Feature _notSha512ListInput
{
get
{
return new Feature(
"not-sha512",
new List<string>() { "-nsha512", "--not-sha512" },
"Filter by not SHA-512 hash",
FeatureType.List,
longDescription: "Include only items without this SHA-512 hash in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
private static Feature _notStatusListInput
{
get
{
return new Feature(
"not-status",
new List<string>() { "-nis", "--not-status" },
"Exclude only items with a given status",
FeatureType.List,
longDescription: @"Include only items without this item status in the output. Multiple instances of this flag are allowed.
Possible values are: None, Good, BadDump, Nodump, Verified");
}
}
private static Feature _outputTypeListInput
{
get
{
return new Feature(
"output-type",
new List<string>() { "-ot", "--output-type" },
"Output DATs to a specified format",
FeatureType.List,
longDescription: @"Add outputting the created DAT to known format. Multiple instances of this flag are allowed.
Possible values are:
all - All available DAT types
am, attractmode - AttractMode XML
cmp, clrmamepro - ClrMamePro
csv - Standardized Comma-Separated Value
dc, doscenter - DOSCenter
lr, listrom - MAME Listrom
lx, listxml - MAME Listxml
miss, missfile - GoodTools Missfile
md5 - MD5
ol, offlinelist - OfflineList XML
rc, romcenter - RomCenter
sd, sabredat - SabreDat XML
sfv - SFV
sha1 - SHA1
sha256 - SHA256
sha384 - SHA384
sha512 - SHA512
sl, softwarelist - MAME Software List XML
ssv - Standardized Semicolon-Separated Value
tsv - Standardized Tab-Separated Value
xml, logiqx - Logiqx XML");
}
}
private static Feature _reportTypeListInput
{
get
{
return new Feature(
"report-type",
new List<string>() { "-srt", "--report-type" },
"Output statistics to a specified format",
FeatureType.List,
longDescription: @"Add outputting the created DAT to known format. Multiple instances of this flag are allowed.
Possible values are:
all - All available DAT types
csv - Standardized Comma-Separated Value
html - HTML webpage
ssv - Standardized Semicolon-Separated Value
text - Generic textfile
tsv - Standardized Tab-Separated Value");
}
}
private static Feature _sha1ListInput
{
get
{
return new Feature(
"sha1",
new List<string>() { "-sha1", "--sha1" },
"Filter by SHA-1 hash",
FeatureType.List,
longDescription: "Include only items with this SHA-1 hash in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
private static Feature _sha256ListInput
{
get
{
return new Feature(
"sha256",
new List<string>() { "-sha256", "--sha256" },
"Filter by SHA-256 hash",
FeatureType.List,
longDescription: "Include only items with this SHA-256 hash in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
private static Feature _sha384ListInput
{
get
{
return new Feature(
"sha384",
new List<string>() { "-sha384", "--sha384" },
"Filter by SHA-384 hash",
FeatureType.List,
longDescription: "Include only items with this SHA-384 hash in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
private static Feature _sha512ListInput
{
get
{
return new Feature(
"sha512",
new List<string>() { "-sha512", "--sha512" },
"Filter by SHA-512 hash",
FeatureType.List,
longDescription: "Include only items with this SHA-512 hash in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
private static Feature _statusListInput
{
get
{
return new Feature(
"status",
new List<string>() { "-is", "--status" },
"Include only items with a given status",
FeatureType.List,
longDescription: @"Include only items with this item status in the output. Multiple instances of this flag are allowed.
Possible values are: None, Good, BadDump, Nodump, Verified");
}
}
#endregion
#region Private String features
private static Feature _addExtensionStringInput
{
get
{
return new Feature(
"add-extension",
new List<string>() { "-ae", "--add-extension" },
"Add an extension to each item",
FeatureType.String,
longDescription: "Add a postfix extension to each full item name.");
}
}
private static Feature _authorStringInput
{
get
{
return new Feature(
"author",
new List<string>() { "-au", "--author" },
"Set the author of the DAT",
FeatureType.String,
longDescription: "Set the author header field for the output DAT(s)");
}
}
private static Feature _categoryStringInput
{
get
{
return new Feature(
"category",
new List<string>() { "-c", "--category" },
"Set the category of the DAT",
FeatureType.String,
longDescription: "Set the category header field for the output DAT(s)");
}
}
private static Feature _commentStringInput
{
get
{
return new Feature(
"comment",
new List<string>() { "-co", "--comment" },
"Set a new comment of the DAT",
FeatureType.String,
longDescription: "Set the comment header field for the output DAT(s)");
}
}
private static Feature _dateStringInput
{
get
{
return new Feature(
"date",
new List<string>() { "-da", "--date" },
"Set a new date",
FeatureType.String,
longDescription: "Set the date header field for the output DAT(s)");
}
}
private static Feature _descriptionStringInput
{
get
{
return new Feature(
"description",
new List<string>() { "-de", "--description" },
"Set the description of the DAT",
FeatureType.String,
longDescription: "Set the description header field for the output DAT(s)");
}
}
private static Feature _emailStringInput
{
get
{
return new Feature(
"email",
new List<string>() { "-em", "--email" },
"Set a new email of the DAT",
FeatureType.String,
longDescription: "Set the email header field for the output DAT(s)");
}
}
private static Feature _equalStringInput
{
get
{
return new Feature(
"equal",
new List<string>() { "-seq", "--equal" },
"Filter by size ==",
FeatureType.String,
longDescription: "Only include items of this exact size in the output DAT. Users can specify either a regular integer number or a number with a standard postfix. e.g. 8kb => 8000 or 8kib => 8192");
}
}
private static Feature _filenameStringInput
{
get
{
return new Feature(
"filename",
new List<string>() { "-f", "--filename" },
"Set the external name of the DAT",
FeatureType.String,
longDescription: "Set the external filename for the output DAT(s)");
}
}
private static Feature _forcemergingStringInput
{
get
{
return new Feature(
"forcemerging",
new List<string>() { "-fm", "--forcemerging" },
"Set force merging",
FeatureType.String,
longDescription: @"Set the forcemerging tag to the given value.
Possible values are: None, Split, Merged, Nonmerged, Full");
}
}
private static Feature _forcenodumpStringInput
{
get
{
return new Feature(
"forcenodump",
new List<string>() { "-fn", "--forcenodump" },
"Set force nodump",
FeatureType.String,
longDescription: @"Set the forcenodump tag to the given value.
Possible values are: None, Obsolete, Required, Ignore");
}
}
private static Feature _forcepackingStringInput
{
get
{
return new Feature(
"forcepacking",
new List<string>() { "-fp", "--forcepacking" },
"Set force packing",
FeatureType.String,
longDescription: @"Set the forcepacking tag to the given value.
Possible values are: None, Zip, Unzip");
}
}
private static Feature _greaterStringInput
{
get
{
return new Feature(
"greater",
new List<string>() { "-sgt", "--greater" },
"Filter by size >=",
FeatureType.String,
longDescription: "Only include items whose size is greater than or equal to this value in the output DAT. Users can specify either a regular integer number or a number with a standard postfix. e.g. 8kb => 8000 or 8kib => 8192");
}
}
private static Feature _headerStringInput
{
get
{
return new Feature(
"header",
new List<string>() { "-h", "--header" },
"Set a header skipper to use, blank means all",
FeatureType.String,
longDescription: "Set the header special field for the output DAT(s). In file rebuilding, this flag allows for either all copier headers (using \"\") or specific copier headers by name (such as \"fds.xml\") to determine if a file matches or not.");
}
}
private static Feature _homepageStringInput
{
get
{
return new Feature(
"homepage",
new List<string>() { "-hp", "--homepage" },
"Set a new homepage of the DAT",
FeatureType.String,
longDescription: "Set the homepage header field for the output DAT(s)");
}
}
private static Feature _lessStringInput
{
get
{
return new Feature(
"less",
new List<string>() { "-slt", "--less" },
"Filter by size =<",
FeatureType.String,
longDescription: "Only include items whose size is less than or equal to this value in the output DAT. Users can specify either a regular integer number or a number with a standard postfix. e.g. 8kb => 8000 or 8kib => 8192");
}
}
private static Feature _nameStringInput
{
get
{
return new Feature(
"name",
new List<string>() { "-n", "--name" },
"Set the internal name of the DAT",
FeatureType.String,
longDescription: "Set the name header field for the output DAT(s)");
}
}
private static Feature _outputDirStringInput
{
get
{
return new Feature(
"output-dir",
new List<string>() { "-out", "--output-dir" },
"Output directory",
FeatureType.String,
longDescription: "This sets an output folder to be used when the files are created. If a path is not defined, the runtime directory is used instead.");
}
}
private static Feature _postfixStringInput
{
get
{
return new Feature(
"postfix",
new List<string>() { "-post", "--postfix" },
"Set postfix for all lines",
FeatureType.String,
longDescription: @"Set a generic postfix to be appended to all outputted lines.
Some special strings that can be used:
- %game% / %machine% - Replaced with the Game/Machine name
- %name% - Replaced with the Rom name
- %%manufacturer%% - Replaced with game Manufacturer
- %publisher% - Replaced with game Publisher
- %crc% - Replaced with the CRC
- %md5% - Replaced with the MD5
- %sha1% - Replaced with the SHA-1
- %sha256% - Replaced with the SHA-256
- %sha384% - Replaced with the SHA-384
- %sha512% - Replaced with the SHA-512
- %size% - Replaced with the size");
}
}
private static Feature _prefixStringInput
{
get
{
return new Feature(
"prefix",
new List<string>() { "-pre", "--prefix" },
"Set prefix for all lines",
FeatureType.String,
longDescription: @"Set a generic prefix to be prepended to all outputted lines.
Some special strings that can be used:
- %game% / %machine% - Replaced with the Game/Machine name
- %name% - Replaced with the Rom name
- %%manufacturer%% - Replaced with game Manufacturer
- %publisher% - Replaced with game Publisher
- %crc% - Replaced with the CRC
- %md5% - Replaced with the MD5
- %sha1% - Replaced with the SHA-1
- %sha256% - Replaced with the SHA-256
- %sha384% - Replaced with the SHA-384
- %sha512% - Replaced with the SHA-512
- %size% - Replaced with the size");
}
}
private static Feature _replaceExtensionStringInput
{
get
{
return new Feature(
"replace-extension",
new List<string>() { "-rep", "--replace-extension" },
"Replace all extensions with specified",
FeatureType.String,
longDescription: "When an extension exists, replace it with the provided instead.");
}
}
private static Feature _rootStringInput
{
get
{
return new Feature(
"root",
new List<string>() { "-r", "--root" },
"Set a new rootdir",
FeatureType.String,
longDescription: "Set the rootdir (as used by SuperDAT mode) for the output DAT(s).");
}
}
private static Feature _rootDirStringInput
{
get
{
return new Feature(
"root-dir",
new List<string>() { "-rd", "--root-dir" },
"Set the root directory for calc",
FeatureType.String,
longDescription: "In the case that the files will not be stored from the root directory, a new root can be set for path length calculations.");
}
}
private static Feature _tempStringInput
{
get
{
return new Feature(
"temp",
new List<string>() { "-t", "--temp" },
"Set the temporary directory to use",
FeatureType.String,
longDescription: "Optionally, a temp folder can be supplied in the case the default temp directory is not preferred.");
}
}
private static Feature _urlStringInput
{
get
{
return new Feature(
"url",
new List<string>() { "-u", "--url" },
"Set a new URL of the DAT",
FeatureType.String,
longDescription: "Set the URL header field for the output DAT(s)");
}
}
private static Feature _versionStringInput
{
get
{
return new Feature(
"version",
new List<string>() { "-v", "--version" },
"Set the version of the DAT",
FeatureType.String,
longDescription: "Set the version header field for the output DAT(s)");
}
}
#endregion
public static Help RetrieveHelp()
{
// Create and add the header to the Help object
string barrier = "-----------------------------------------";
List<string> helpHeader = new List<string>()
{
"SabreTools - Manipulate, convert, and use DAT files",
barrier,
"Usage: SabreTools [option] [flags] [filename|dirname] ...",
""
};
Help help = new Help(helpHeader);
#region Help
Feature helpFeature = new Feature(
"Help",
new List<string>() { "-?", "-h", "--help" },
"Show this help",
FeatureType.Flag,
longDescription: "Built-in to most of the programs is a basic help text.");
#endregion
#region Detailed Help
Feature detailedHelpFeature = new Feature(
"Help (Detailed)",
new List<string>() { "-??", "-hd", "--help-detailed" },
"Show this detailed help",
FeatureType.Flag,
longDescription: "Display a detailed help text to the screen.");
#endregion
#region Script
Feature script = new Feature(
"Script",
"--script",
"Enable script mode (no clear screen)",
FeatureType.Flag,
longDescription: "For times when SabreTools is being used in a scripted environment, the user may not want the screen to be cleared every time that it is called. This flag allows the user to skip clearing the screen on run just like if the console was being redirected.");
#endregion
#region DATFromDir
Feature datFromDir = new Feature(
"DATFromDir",
new List<string>() { "-d", "--d2d", "--dfd" },
"Create DAT(s) from an input directory",
FeatureType.Flag,
longDescription: "Create a DAT file from an input directory or set of files. By default, this will output a DAT named based on the input directory and the current date. It will also treat all archives as possible games and add all three hashes (CRC, MD5, SHA-1) for each file.");
datFromDir.AddFeature(_skipMd5Flag);
datFromDir.AddFeature(_skipSha1Flag);
datFromDir.AddFeature(_skipSha256Flag);
datFromDir.AddFeature(_skipSha384Flag);
datFromDir.AddFeature(_skipSha512Flag);
datFromDir.AddFeature(_noAutomaticDateFlag);
datFromDir.AddFeature(_forcepackingStringInput);
datFromDir.AddFeature(_archivesAsFilesFlag);
// NEW
datFromDir.AddFeature(_outputTypeListInput);
datFromDir[_outputTypeListInput.Name].AddFeature(_depreciatedFlag);
// OLD
datFromDir.AddFeature(_outputAllFlag);
datFromDir.AddFeature(_outputAttractmodeFlag);
datFromDir.AddFeature(_outputCmpFlag);
datFromDir.AddFeature(_outputCsvFlag);
datFromDir.AddFeature(_outputDoscenterFlag);
datFromDir.AddFeature(_outputListromFlag);
datFromDir.AddFeature(_outputListxmlFlag);
datFromDir.AddFeature(_outputMissFlag);
datFromDir.AddFeature(_outputMd5Flag);
datFromDir.AddFeature(_outputOfflinelistFlag);
datFromDir.AddFeature(_outputRomcenterFlag);
datFromDir.AddFeature(_outputSabredatFlag);
datFromDir.AddFeature(_outputSfvFlag);
datFromDir.AddFeature(_outputSha1Flag);
datFromDir.AddFeature(_outputSha256Flag);
datFromDir.AddFeature(_outputSha384Flag);
datFromDir.AddFeature(_outputSha512Flag);
datFromDir.AddFeature(_outputSoftwarelistFlag);
datFromDir.AddFeature(_outputSsvFlag);
datFromDir.AddFeature(_outputTsvFlag);
datFromDir.AddFeature(_outputXmlFlag);
datFromDir[_outputXmlFlag].AddFeature(_depreciatedFlag);
datFromDir.AddFeature(_rombaFlag);
datFromDir.AddFeature(_skipArchivesFlag);
datFromDir.AddFeature(_skipFilesFlag);
datFromDir.AddFeature(_filenameStringInput);
datFromDir.AddFeature(_nameStringInput);
datFromDir.AddFeature(_descriptionStringInput);
datFromDir.AddFeature(_categoryStringInput);
datFromDir.AddFeature(_versionStringInput);
datFromDir.AddFeature(_authorStringInput);
datFromDir.AddFeature(_emailStringInput);
datFromDir.AddFeature(_homepageStringInput);
datFromDir.AddFeature(_urlStringInput);
datFromDir.AddFeature(_commentStringInput);
datFromDir.AddFeature(_superdatFlag);
datFromDir.AddFeature(_excludeOfFlag);
datFromDir.AddFeature(_sceneDateStripFlag);
datFromDir.AddFeature(_addBlankFilesFlag);
datFromDir.AddFeature(_addDateFlag);
datFromDir.AddFeature(_copyFilesFlag);
datFromDir.AddFeature(_headerStringInput);
datFromDir.AddFeature(_chdsAsFilesFlag);
datFromDir.AddFeature(_tempStringInput);
datFromDir.AddFeature(_outputDirStringInput);
datFromDir.AddFeature(_threadsInt32Input);
#endregion
#region Extract
Feature extract = new Feature(
"Extract",
new List<string>() { "-ex", "--extract" },
"Extract and remove copier headers",
FeatureType.Flag,
longDescription: @"This will detect, store, and remove copier headers from a file or folder of files. The headers are backed up and collated by the hash of the unheadered file. Files are then output without the detected copier header alongside the originals with the suffix .new. No input files are altered in the process.
The following systems have headers that this program can work with:
- Atari 7800
- Atari Lynx
- Commodore PSID Music
- NEC PC - Engine / TurboGrafx 16
- Nintendo Famicom / Nintendo Entertainment System
- Nintendo Famicom Disk System
- Nintendo Super Famicom / Super Nintendo Entertainment System
- Nintendo Super Famicom / Super Nintendo Entertainment System SPC");
extract.AddFeature(_outputDirStringInput);
extract.AddFeature(_noStoreHeaderFlag);
#endregion
#region Restore
Feature restore = new Feature(
"Restore",
new List<string>() { "-re", "--restore" },
"Restore header to file based on SHA-1",
FeatureType.Flag,
longDescription: @"This will make use of stored copier headers and reapply them to files if they match the included hash. More than one header can be applied to a file, so they will be output to new files, suffixed with .newX, where X is a number. No input files are altered in the process.
The following systems have headers that this program can work with:
- Atari 7800
- Atari Lynx
- Commodore PSID Music
- NEC PC - Engine / TurboGrafx 16
- Nintendo Famicom / Nintendo Entertainment System
- Nintendo Famicom Disk System
- Nintendo Super Famicom / Super Nintendo Entertainment System
- Nintendo Super Famicom / Super Nintendo Entertainment System SPC");
restore.AddFeature(_outputDirStringInput);
#endregion
#region Sort
Feature sort = new Feature(
"Sort",
new List<string>() { "-ss", "--sort" },
"Sort inputs by a set of DATs",
FeatureType.Flag,
longDescription: "This feature allows the user to quickly rebuild based on a supplied DAT file(s). By default all files will be rebuilt to uncompressed folders in the output directory.");
sort.AddFeature(_datListInput);
sort.AddFeature(_outputDirStringInput);
sort.AddFeature(_depotFlag);
sort.AddFeature(_deleteFlag);
sort.AddFeature(_inverseFlag);
sort.AddFeature(_quickFlag);
sort.AddFeature(_chdsAsFilesFlag);
sort.AddFeature(_addDateFlag);
sort.AddFeature(_torrent7zipFlag);
sort.AddFeature(_tarFlag);
sort.AddFeature(_torrentGzipFlag);
sort[_torrentGzipFlag].AddFeature(_rombaFlag);
sort.AddFeature(_torrentLrzipFlag);
sort.AddFeature(_torrentLz4Flag);
sort.AddFeature(_torrentRarFlag);
sort.AddFeature(_torrentXzFlag);
sort.AddFeature(_torrentZipFlag);
sort.AddFeature(_torrentZpaqFlag);
sort.AddFeature(_torrentZstdFlag);
sort.AddFeature(_headerStringInput);
sort.AddFeature(_sevenZipInt32Input);
sort.AddFeature(_gzInt32Input);
sort.AddFeature(_rarInt32Input);
sort.AddFeature(_zipInt32Input);
sort.AddFeature(_scanAllFlag);
sort.AddFeature(_datMergedFlag);
sort.AddFeature(_datSplitFlag);
sort.AddFeature(_datNonMergedFlag);
sort.AddFeature(_datDeviceNonMergedFlag);
sort.AddFeature(_datFullNonMergedFlag);
sort.AddFeature(_updateDatFlag);
sort.AddFeature(_threadsInt32Input);
#endregion
#region Split
Feature split = new Feature(
"Split",
new List<string>() { "-sp", "--split" },
"Split input DATs by a given criteria",
FeatureType.Flag,
longDescription: "This feature allows the user to split input DATs by a number of different possible criteria. See the individual input information for details. More than one split type is allowed at a time.");
// NEW
split.AddFeature(_outputTypeListInput);
split[_outputTypeListInput.Name].AddFeature(_depreciatedFlag);
// OLD
split.AddFeature(_outputAllFlag);
split.AddFeature(_outputAttractmodeFlag);
split.AddFeature(_outputCmpFlag);
split.AddFeature(_outputCsvFlag);
split.AddFeature(_outputDoscenterFlag);
split.AddFeature(_outputListromFlag);
split.AddFeature(_outputListxmlFlag);
split.AddFeature(_outputMissFlag);
split.AddFeature(_outputMd5Flag);
split.AddFeature(_outputOfflinelistFlag);
split.AddFeature(_outputRomcenterFlag);
split.AddFeature(_outputSabredatFlag);
split.AddFeature(_outputSfvFlag);
split.AddFeature(_outputSha1Flag);
split.AddFeature(_outputSha256Flag);
split.AddFeature(_outputSha384Flag);
split.AddFeature(_outputSha512Flag);
split.AddFeature(_outputSoftwarelistFlag);
split.AddFeature(_outputSsvFlag);
split.AddFeature(_outputTsvFlag);
split.AddFeature(_outputXmlFlag);
split[_outputXmlFlag].AddFeature(_depreciatedFlag);
split.AddFeature(_outputDirStringInput);
split.AddFeature(_inplaceFlag);
split.AddFeature(_extensionFlag);
split[_extensionFlag].AddFeature(_extaListInput);
split[_extensionFlag].AddFeature(_extbListInput);
split.AddFeature(_hashFlag);
split.AddFeature(_levelFlag);
split[_levelFlag].AddFeature(_shortFlag);
split[_levelFlag].AddFeature(_baseFlag);
split.AddFeature(_sizeFlag);
split[_sizeFlag].AddFeature(_radixInt64Input);
split.AddFeature(_typeFlag);
#endregion
#region Stats
Feature stats = new Feature(
"Stats",
new List<string>() { "-st", "--stats" },
"Get statistics on all input DATs",
FeatureType.Flag,
longDescription: @"This will output by default the combined statistics for all input DAT files.
The stats that are outputted are as follows:
- Total uncompressed size
- Number of games found
- Number of roms found
- Number of disks found
- Items that include a CRC
- Items that include a MD5
- Items that include a SHA-1
- Items that include a SHA-256
- Items that include a SHA-384
- Items that include a SHA-512
- Items with Nodump status");
// NEW
stats.AddFeature(_reportTypeListInput);
// OLD
stats.AddFeature(_allStatsFlag);
stats.AddFeature(_csvFlag);
stats.AddFeature(_htmlFlag);
stats.AddFeature(_tsvFlag);
stats.AddFeature(_textFlag);
stats.AddFeature(_filenameStringInput);
stats.AddFeature(_outputDirStringInput);
stats.AddFeature(_baddumpColumnFlag);
stats.AddFeature(_nodumpColumnFlag);
stats.AddFeature(_individualFlag);
#endregion
#region Update
Feature update = new Feature(
"Update",
new List<string>() { "-ud", "--update" },
"Update and manipulate DAT(s)",
FeatureType.Flag,
longDescription: "This is the multitool part of the program, allowing for almost every manipulation to a DAT, or set of DATs. This is also a combination of many different programs that performed DAT manipulation that work better together.");
// NEW
update.AddFeature(_outputTypeListInput);
update[_outputTypeListInput].AddFeature(_prefixStringInput);
update[_outputTypeListInput].AddFeature(_postfixStringInput);
update[_outputTypeListInput].AddFeature(_quotesFlag);
update[_outputTypeListInput].AddFeature(_romsFlag);
update[_outputTypeListInput].AddFeature(_gamePrefixFlag);
update[_outputTypeListInput].AddFeature(_addExtensionStringInput);
update[_outputTypeListInput].AddFeature(_replaceExtensionStringInput);
update[_outputTypeListInput].AddFeature(_removeExtensionsFlag);
update[_outputTypeListInput].AddFeature(_rombaFlag);
update[_outputTypeListInput].AddFeature(_depreciatedFlag);
// OLD
update.AddFeature(_outputAllFlag);
update.AddFeature(_outputAttractmodeFlag);
update.AddFeature(_outputCmpFlag);
update.AddFeature(_outputCsvFlag);
update[_outputCsvFlag].AddFeature(_prefixStringInput);
update[_outputCsvFlag].AddFeature(_postfixStringInput);
update[_outputCsvFlag].AddFeature(_quotesFlag);
update.AddFeature(_outputDoscenterFlag);
update.AddFeature(_outputListromFlag);
update.AddFeature(_outputListxmlFlag);
update.AddFeature(_outputMissFlag);
update[_outputMissFlag].AddFeature(_romsFlag);
update[_outputMissFlag].AddFeature(_gamePrefixFlag);
update[_outputMissFlag].AddFeature(_prefixStringInput);
update[_outputMissFlag].AddFeature(_postfixStringInput);
update[_outputMissFlag].AddFeature(_quotesFlag);
update[_outputMissFlag].AddFeature(_addExtensionStringInput);
update[_outputMissFlag].AddFeature(_replaceExtensionStringInput);
update[_outputMissFlag].AddFeature(_removeExtensionsFlag);
update[_outputMissFlag].AddFeature(_rombaFlag);
update.AddFeature(_outputMd5Flag);
update[_outputMd5Flag].AddFeature(_gamePrefixFlag);
update.AddFeature(_outputOfflinelistFlag);
update.AddFeature(_outputRomcenterFlag);
update.AddFeature(_outputSabredatFlag);
update.AddFeature(_outputSfvFlag);
update[_outputSfvFlag].AddFeature(_gamePrefixFlag);
update.AddFeature(_outputSha1Flag);
update[_outputSha1Flag].AddFeature(_gamePrefixFlag);
update.AddFeature(_outputSha256Flag);
update[_outputSha256Flag].AddFeature(_gamePrefixFlag);
update.AddFeature(_outputSha384Flag);
update[_outputSha384Flag].AddFeature(_gamePrefixFlag);
update.AddFeature(_outputSha512Flag);
update[_outputSha512Flag].AddFeature(_gamePrefixFlag);
update.AddFeature(_outputSoftwarelistFlag);
update.AddFeature(_outputSsvFlag);
update[_outputSsvFlag].AddFeature(_prefixStringInput);
update[_outputSsvFlag].AddFeature(_postfixStringInput);
update[_outputSsvFlag].AddFeature(_quotesFlag);
update.AddFeature(_outputTsvFlag);
update[_outputTsvFlag].AddFeature(_prefixStringInput);
update[_outputTsvFlag].AddFeature(_postfixStringInput);
update[_outputTsvFlag].AddFeature(_quotesFlag);
update.AddFeature(_outputXmlFlag);
update[_outputXmlFlag].AddFeature(_depreciatedFlag);
// End OLD
update.AddFeature(_filenameStringInput);
update.AddFeature(_nameStringInput);
update.AddFeature(_descriptionStringInput);
update.AddFeature(_rootStringInput);
update.AddFeature(_categoryStringInput);
update.AddFeature(_versionStringInput);
update.AddFeature(_dateStringInput);
update.AddFeature(_authorStringInput);
update.AddFeature(_emailStringInput);
update.AddFeature(_homepageStringInput);
update.AddFeature(_urlStringInput);
update.AddFeature(_commentStringInput);
update.AddFeature(_headerStringInput);
update.AddFeature(_superdatFlag);
update.AddFeature(_forcemergingStringInput);
update.AddFeature(_forcenodumpStringInput);
update.AddFeature(_forcepackingStringInput);
update.AddFeature(_excludeOfFlag);
update.AddFeature(_keepEmptyGamesFlag);
update.AddFeature(_sceneDateStripFlag);
update.AddFeature(_cleanFlag);
update.AddFeature(_removeUnicodeFlag);
update.AddFeature(_removeMd5Flag);
update.AddFeature(_removeSha1Flag);
update.AddFeature(_removeSha256Flag);
update.AddFeature(_removeSha384Flag);
update.AddFeature(_removeSha512Flag);
update.AddFeature(_descriptionAsNameFlag);
update.AddFeature(_datMergedFlag);
update.AddFeature(_datSplitFlag);
update.AddFeature(_datNonMergedFlag);
update.AddFeature(_datDeviceNonMergedFlag);
update.AddFeature(_datFullNonMergedFlag);
update.AddFeature(_trimFlag);
update[_trimFlag].AddFeature(_rootDirStringInput);
update.AddFeature(_singleSetFlag);
update.AddFeature(_dedupFlag);
update.AddFeature(_gameDedupFlag);
update.AddFeature(_mergeFlag);
update[_mergeFlag].AddFeature(_noAutomaticDateFlag);
update.AddFeature(_diffAllFlag);
update[_diffAllFlag].AddFeature(_noAutomaticDateFlag);
update.AddFeature(_diffDuplicatesFlag);
update[_diffDuplicatesFlag].AddFeature(_noAutomaticDateFlag);
update.AddFeature(_diffIndividualsFlag);
update[_diffIndividualsFlag].AddFeature(_noAutomaticDateFlag);
update.AddFeature(_diffNoDuplicatesFlag);
update[_diffNoDuplicatesFlag].AddFeature(_noAutomaticDateFlag);
update.AddFeature(_diffAgainstFlag);
update[_diffAgainstFlag].AddFeature(_baseDatListInput);
update.AddFeature(_baseReplaceFlag);
update[_baseReplaceFlag].AddFeature(_baseDatListInput);
update[_baseReplaceFlag].AddFeature(_updateNamesFlag);
update[_baseReplaceFlag].AddFeature(_updateHashesFlag);
update[_baseReplaceFlag].AddFeature(_updateDescriptionFlag);
update[_baseReplaceFlag][_updateDescriptionFlag].AddFeature(_onlySameFlag);
update[_baseReplaceFlag].AddFeature(_updateYearFlag);
update[_baseReplaceFlag].AddFeature(_updateManufacturerFlag);
update.AddFeature(_reverseBaseReplaceFlag);
update[_reverseBaseReplaceFlag].AddFeature(_baseDatListInput);
update[_reverseBaseReplaceFlag].AddFeature(_updateNamesFlag);
update[_reverseBaseReplaceFlag].AddFeature(_updateHashesFlag);
update[_reverseBaseReplaceFlag].AddFeature(_updateDescriptionFlag);
update[_reverseBaseReplaceFlag][_updateDescriptionFlag].AddFeature(_onlySameFlag);
update[_reverseBaseReplaceFlag].AddFeature(_updateYearFlag);
update[_reverseBaseReplaceFlag].AddFeature(_updateManufacturerFlag);
update.AddFeature(_diffCascadeFlag);
update[_diffCascadeFlag].AddFeature(_skipFirstOutputFlag);
update.AddFeature(_diffReverseCascadeFlag);
update[_diffReverseCascadeFlag].AddFeature(_skipFirstOutputFlag);
update.AddFeature(_gameNameListInput);
update.AddFeature(_notGameNameListInput);
update.AddFeature(_gameDescriptionListInput);
update.AddFeature(_notGameDescriptionListInput);
update.AddFeature(_matchOfTagsFlag);
update.AddFeature(_itemNameListInput);
update.AddFeature(_notItemNameListInput);
update.AddFeature(_itemTypeListInput);
update.AddFeature(_notItemTypeListInput);
update.AddFeature(_greaterStringInput);
update.AddFeature(_lessStringInput);
update.AddFeature(_equalStringInput);
update.AddFeature(_crcListInput);
update.AddFeature(_notCrcListInput);
update.AddFeature(_md5ListInput);
update.AddFeature(_notMd5ListInput);
update.AddFeature(_sha1ListInput);
update.AddFeature(_notSha1ListInput);
update.AddFeature(_sha256ListInput);
update.AddFeature(_notSha256ListInput);
update.AddFeature(_sha384ListInput);
update.AddFeature(_notSha384ListInput);
update.AddFeature(_sha512ListInput);
update.AddFeature(_notSha512ListInput);
update.AddFeature(_statusListInput);
update.AddFeature(_notStatusListInput);
update.AddFeature(_gameTypeListInput);
update.AddFeature(_notGameTypeListInput);
update.AddFeature(_runnableFlag);
update.AddFeature(_notRunnableFlag);
update.AddFeature(_outputDirStringInput);
update.AddFeature(_inplaceFlag);
update.AddFeature(_threadsInt32Input);
#endregion
#region Verify
Feature verify = new Feature(
"Verify",
new List<string>() { "-ve", "--verify" },
"Verify a folder against DATs",
FeatureType.Flag,
longDescription: "When used, this will use an input DAT or set of DATs to blindly check against an input folder. The base of the folder is considered the base for the combined DATs and games are either the directories or archives within. This will only do a direct verification of the items within and will create a fixdat afterwards for missing files.");
verify.AddFeature(_datListInput);
verify.AddFeature(_depotFlag);
verify.AddFeature(_tempStringInput);
verify.AddFeature(_hashOnlyFlag);
verify.AddFeature(_quickFlag);
verify.AddFeature(_headerStringInput);
verify.AddFeature(_chdsAsFilesFlag);
verify.AddFeature(_datMergedFlag);
verify.AddFeature(_datSplitFlag);
verify.AddFeature(_datDeviceNonMergedFlag);
verify.AddFeature(_datNonMergedFlag);
verify.AddFeature(_datFullNonMergedFlag);
#endregion
// Now, add all of the main features to the Help object
help.Add(helpFeature);
help.Add(detailedHelpFeature);
help.Add(script);
help.Add(datFromDir);
help.Add(extract);
help.Add(restore);
help.Add(sort);
help.Add(split);
help.Add(stats);
help.Add(update);
help.Add(verify);
return help;
}
}
}