From 42e140b16a4341b97a0a4e3ce79b8f3b5896a179 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Wed, 1 Feb 2017 11:13:43 -0800 Subject: [PATCH] [Build] Minor output improvements --- SabreTools.Helper/Data/Build.cs | 189 +++++++++++++++++--------------- 1 file changed, 99 insertions(+), 90 deletions(-) diff --git a/SabreTools.Helper/Data/Build.cs b/SabreTools.Helper/Data/Build.cs index e0b626c0..02555fda 100644 --- a/SabreTools.Helper/Data/Build.cs +++ b/SabreTools.Helper/Data/Build.cs @@ -191,8 +191,8 @@ namespace SabreTools.Helper.Data helptext.Add(" -ns, --noSHA1 Don't include SHA1 in output"); helptext.Add(" -b, --bare Don't include date in file name"); helptext.Add(" -fp=, --forcepack= Set force packing"); - helptext.Add(" Supported values are:"); - helptext.Add(" None, Zip, Unzip"); + helptext.Add(" Supported values are:"); + helptext.Add(" None, Zip, Unzip"); helptext.Add(" -f, --files Treat archives as files"); helptext.Add(" -oa, --output-all Output in all formats"); helptext.Add(" -oam, --output-am Output in AttractMode format"); @@ -293,6 +293,10 @@ namespace SabreTools.Helper.Data helptext.Add(" -ud, --update-dat Output updated DAT to output directory"); helptext.Add(" -mt={4} Amount of threads to use (-1 unlimted)"); + helptext.Add(""); + helptext.Add(barrier); + helptext.Add("Additional Notes:"); + helptext.Add(""); helptext.Add("Archive scanning levels:"); helptext.Add(" 0 Hash archive and contents"); @@ -348,15 +352,15 @@ namespace SabreTools.Helper.Data case "ud": case "update": helptext.Add("Available Flags:"); - helptext.Add(" -oa, --output-all Output in all formats"); - helptext.Add(" -oam, --output-am Output in AttractMode format"); - helptext.Add(" -oc, --output-cmp Output in CMP format"); - helptext.Add(" -ocsv, --output-csv Output in CSV format"); + helptext.Add(" -oa, --output-all Output in all formats"); + helptext.Add(" -oam, --output-am Output in AttractMode format"); + helptext.Add(" -oc, --output-cmp Output in CMP format"); + helptext.Add(" -ocsv, --output-csv Output in CSV format"); helptext.Add(" -pre=, --prefix= Set prefix for all lines"); helptext.Add(" -post=, --postfix= Set postfix for all lines"); helptext.Add(" -q, --quotes Put double-quotes around each item"); - helptext.Add(" -od, --output-dc Output in DOSCenter format"); - helptext.Add(" -om, --output-miss Output in Missfile format"); + helptext.Add(" -od, --output-dc Output in DOSCenter format"); + helptext.Add(" -om, --output-miss Output in Missfile format"); helptext.Add(" -r, --roms Output roms to miss instead of sets"); helptext.Add(" -gp, --game-prefix Add game name as a prefix"); helptext.Add(" -pre=, --prefix= Set prefix for all lines"); @@ -368,58 +372,58 @@ namespace SabreTools.Helper.Data helptext.Add(" -ro, --romba Output in Romba format (requires SHA-1)"); helptext.Add(" -tsv, --tsv Output in Tab-Separated Value format"); helptext.Add(" -csv, --csv Output in Comma-Separated Value format"); - helptext.Add(" -omd5, --output-md5 Output in MD5 format"); + helptext.Add(" -omd5, --output-md5 Output in MD5 format"); helptext.Add(" -gp, --game-prefix Add game name as a prefix"); - helptext.Add(" -ool, --output-ol Output in OfflineList format"); - helptext.Add(" -or, --output-rc Output in RomCenter format"); - helptext.Add(" -os, --output-sd Output in SabreDAT format"); - helptext.Add(" -osfv, --ouput-sfv Output in SFV format"); + helptext.Add(" -ool, --output-ol Output in OfflineList format"); + helptext.Add(" -or, --output-rc Output in RomCenter format"); + helptext.Add(" -os, --output-sd Output in SabreDAT format"); + helptext.Add(" -osfv, --ouput-sfv Output in SFV format"); helptext.Add(" -gp, --game-prefix Add game name as a prefix"); - helptext.Add(" -osha1, --output-sha1 Output in SHA-1 format"); + helptext.Add(" -osha1, --output-sha1 Output in SHA-1 format"); helptext.Add(" -gp, --game-prefix Add game name as a prefix"); - helptext.Add(" -osl, --output-sl Output in Softwarelist format"); - helptext.Add(" -otsv, --output-tsv Output in TSV format"); + helptext.Add(" -osl, --output-sl Output in Softwarelist format"); + helptext.Add(" -otsv, --output-tsv Output in TSV format"); helptext.Add(" -pre=, --prefix= Set prefix for all lines"); helptext.Add(" -post=, --postfix= Set postfix for all lines"); helptext.Add(" -q, --quotes Put double-quotes around each item"); - helptext.Add(" -ox, --output-xml Output in Logiqx XML format"); - helptext.Add(" -f=, --filename= Set a new filename"); - helptext.Add(" -n=, --name= Set a new internal name"); - helptext.Add(" -de=, --desc= Set a new description"); - helptext.Add(" -r=, --root= Set a new rootdir"); - helptext.Add(" -ca=, --category= Set a new category"); - helptext.Add(" -v=, --version= Set a new version"); - helptext.Add(" -da=, --date= Set a new date"); - helptext.Add(" -au=, --author= Set a new author"); - helptext.Add(" -em=, --email= Set a new email"); - helptext.Add(" -hp=, --homepage= Set a new homepage"); - helptext.Add(" -u=, --url= Set a new URL"); - helptext.Add(" -co=, --comment= Set a new comment"); - helptext.Add(" -h=, --header= Set a new header skipper"); - helptext.Add(" -sd=, --superdat Set SuperDAT type"); - helptext.Add(" -fm=, --forcemerge= Set force merging"); - helptext.Add(" Supported values are:"); - helptext.Add(" None, Split, Full"); - helptext.Add(" -fn=, --forcend= Set force nodump"); - helptext.Add(" Supported values are:"); - helptext.Add(" None, Obsolete, Required, Ignore"); - helptext.Add(" -fp=, --forcepack= Set force packing"); - helptext.Add(" Supported values are:"); - helptext.Add(" None, Zip, Unzip"); - helptext.Add(" -xof, --exclude-of Exclude romof, cloneof, sampleof tags"); - helptext.Add(" -clean Clean game names according to WoD standards"); - helptext.Add(" -sl, --softlist Use Software List name instead of description"); - helptext.Add(" -dm, --dat-merged Create merged sets"); - helptext.Add(" -ds, --dat-split Create split sets"); - helptext.Add(" -dnm, --dat-nonmerged Create non-merged sets"); - helptext.Add(" -df, --dat-fullnonmerged Create fully non-merged sets"); - helptext.Add(" -trim Trim file names to fit NTFS length"); + helptext.Add(" -ox, --output-xml Output in Logiqx XML format"); + helptext.Add(" -f=, --filename= Set a new filename"); + helptext.Add(" -n=, --name= Set a new internal name"); + helptext.Add(" -de=, --desc= Set a new description"); + helptext.Add(" -r=, --root= Set a new rootdir"); + helptext.Add(" -ca=, --category= Set a new category"); + helptext.Add(" -v=, --version= Set a new version"); + helptext.Add(" -da=, --date= Set a new date"); + helptext.Add(" -au=, --author= Set a new author"); + helptext.Add(" -em=, --email= Set a new email"); + helptext.Add(" -hp=, --homepage= Set a new homepage"); + helptext.Add(" -u=, --url= Set a new URL"); + helptext.Add(" -co=, --comment= Set a new comment"); + helptext.Add(" -h=, --header= Set a new header skipper"); + helptext.Add(" -sd=, --superdat Set SuperDAT type"); + helptext.Add(" -fm=, --forcemerge= Set force merging"); + helptext.Add(" Supported values are:"); + helptext.Add(" None, Split, Full"); + helptext.Add(" -fn=, --forcend= Set force nodump"); + helptext.Add(" Supported values are:"); + helptext.Add(" None, Obsolete, Required, Ignore"); + helptext.Add(" -fp=, --forcepack= Set force packing"); + helptext.Add(" Supported values are:"); + helptext.Add(" None, Zip, Unzip"); + helptext.Add(" -xof, --exclude-of Exclude romof, cloneof, sampleof tags"); + helptext.Add(" -clean Clean game names according to WoD standards"); + helptext.Add(" -sl, --softlist Use Software List name instead of description"); + helptext.Add(" -dm, --dat-merged Create merged sets"); + helptext.Add(" -ds, --dat-split Create split sets"); + helptext.Add(" -dnm, --dat-nonmerged Create non-merged sets"); + helptext.Add(" -df, --dat-fullnonmerged Create fully non-merged sets"); + helptext.Add(" -trim Trim file names to fit NTFS length"); helptext.Add(" -rd=, --root-dir= Set the root directory for calc"); - helptext.Add(" -si, --single All game names replaced by '!'"); - helptext.Add(" -dd, --dedup Enable deduping in the created DAT"); - helptext.Add(" -m, --merge Merge the input DATs"); + helptext.Add(" -si, --single All game names replaced by '!'"); + helptext.Add(" -dd, --dedup Enable deduping in the created DAT"); + helptext.Add(" -m, --merge Merge the input DATs"); helptext.Add(" -b, --bare Don't include date in automatic name"); - helptext.Add(" -di, --diff Create diffdats from inputs (all outputs)"); + helptext.Add(" -di, --diff Create diffdats from inputs (all outputs)"); helptext.Add(" -b, --bare Don't include date in automatic name"); helptext.Add(" -c, --cascade Enable cascaded diffing"); helptext.Add(" -ip, --inplace Enable inplace, cascaded diff"); @@ -427,46 +431,51 @@ namespace SabreTools.Helper.Data helptext.Add(" -rc, --rev-cascade Enable reverse cascaded diffing"); helptext.Add(" -ip, --inplace Enable inplace, cascaded diff"); helptext.Add(" -sf, --skip Skip output of first DAT"); - helptext.Add(" -did, --diff-du Create diffdat containing just duplicates"); - helptext.Add(" [Can be used with other -diX flags]"); + helptext.Add(" -did, --diff-du Create diffdat containing just duplicates"); helptext.Add(" -b, --bare Don't include date in automatic name"); - helptext.Add(" -dii, --diff-in Create diffdats for individual DATs"); - helptext.Add(" [Can be used with other -diX flags]"); + helptext.Add(" -dii, --diff-in Create diffdats for individual DATs"); helptext.Add(" -b, --bare Don't include date in automatic name"); - helptext.Add(" -din, --diff-nd Create diffdat containing no duplicates"); - helptext.Add(" [Can be used with other -diX flags]"); + helptext.Add(" -din, --diff-nd Create diffdat containing no duplicates"); helptext.Add(" -b, --bare Don't include date in automatic name"); - helptext.Add(" -gn=, --game-name= Filter by game name"); - helptext.Add(" -ngn=, --not-game= Filter by not game name"); - helptext.Add(" -rn=, --rom-name= Filter by rom name"); - helptext.Add(" -nrn=, --not-rom= Filter by not rom name"); - helptext.Add(" -rt=, --rom-type= Filter by rom type"); - helptext.Add(" -nrt=, --not-type= Filter by not rom type"); - helptext.Add(" -sgt=, --greater= Filter by size >="); - helptext.Add(" -slt=, --less= Filter by size <="); - helptext.Add(" -seq=, --equal= Filter by size =="); - helptext.Add(" -crc=, --crc= Filter by CRC hash"); - helptext.Add(" -ncrc=, --not-crc= Filter by not CRC hash"); - helptext.Add(" -md5=, --md5= Filter by MD5 hash"); - helptext.Add(" -nmd5=, --not-md5= Filter by not MD5 hash"); - helptext.Add(" -sha1=, --sha1= Filter by SHA-1 hash"); - helptext.Add(" -nsha1=, --not-sha1= Filter by not SHA-1 hash"); - helptext.Add(" -is=, --status= Include only items with a given status"); - helptext.Add(" Supported values are:"); - helptext.Add(" None, Good, BadDump, Nodump, Verified"); - helptext.Add(" -nis=, --not-status= Exclude items with a given status"); - helptext.Add(" Supported values are:"); - helptext.Add(" None, Good, BadDump, Nodump, Verified"); - helptext.Add(" -gt=, --game-type= Include only games with a given type"); - helptext.Add(" Supported values are:"); - helptext.Add(" None, Bios, Device, Mechanical"); - helptext.Add(" -ngt=, --not-gtype= Exclude only games with a given type"); - helptext.Add(" Supported values are:"); - helptext.Add(" None, Bios, Device, Mechanical"); - helptext.Add(" -run, --runnable Include only items that are marked runnable"); - helptext.Add(" -nrun, --not-run Include only items that are marked unrunnable"); - helptext.Add(" -out= Output directory (overridden by --inplace)"); - helptext.Add(" -mt={4} Amount of threads to use (-1 unlimted)"); + helptext.Add(" -gn=, --game-name= Filter by game name"); + helptext.Add(" -ngn=, --not-game= Filter by not game name"); + helptext.Add(" -rn=, --rom-name= Filter by rom name"); + helptext.Add(" -nrn=, --not-rom= Filter by not rom name"); + helptext.Add(" -rt=, --rom-type= Filter by rom type"); + helptext.Add(" -nrt=, --not-type= Filter by not rom type"); + helptext.Add(" -sgt=, --greater= Filter by size >="); + helptext.Add(" -slt=, --less= Filter by size <="); + helptext.Add(" -seq=, --equal= Filter by size =="); + helptext.Add(" -crc=, --crc= Filter by CRC hash"); + helptext.Add(" -ncrc=, --not-crc= Filter by not CRC hash"); + helptext.Add(" -md5=, --md5= Filter by MD5 hash"); + helptext.Add(" -nmd5=, --not-md5= Filter by not MD5 hash"); + helptext.Add(" -sha1=, --sha1= Filter by SHA-1 hash"); + helptext.Add(" -nsha1=, --not-sha1= Filter by not SHA-1 hash"); + helptext.Add(" -is=, --status= Include only items with a given status"); + helptext.Add(" Supported values are:"); + helptext.Add(" None, Good, BadDump, Nodump, Verified"); + helptext.Add(" -nis=, --not-status= Exclude items with a given status"); + helptext.Add(" Supported values are:"); + helptext.Add(" None, Good, BadDump, Nodump, Verified"); + helptext.Add(" -gt=, --game-type= Include only games with a given type"); + helptext.Add(" Supported values are:"); + helptext.Add(" None, Bios, Device, Mechanical"); + helptext.Add(" -ngt=, --not-gtype= Exclude only games with a given type"); + helptext.Add(" Supported values are:"); + helptext.Add(" None, Bios, Device, Mechanical"); + helptext.Add(" -run, --runnable Include only items that are marked runnable"); + helptext.Add(" -nrun, --not-run Include only items that are marked unrunnable"); + helptext.Add(" -out= Output directory (overridden by --inplace)"); + helptext.Add(" -mt={4} Amount of threads to use (-1 unlimted)"); + + + helptext.Add(""); + helptext.Add(barrier); + helptext.Add("Additional Notes:"); + + helptext.Add(""); + helptext.Add("All -diX, --diff-XX flags can be used with each other"); helptext.Add(""); helptext.Add("Filter parameters game name, rom name, CRC, MD5, SHA-1 can"); @@ -566,7 +575,7 @@ namespace SabreTools.Helper.Data i++; // If we're not being redirected and we reached the size of the screen, pause - if (i == Console.WindowHeight - 2) + if (i == Console.WindowHeight - 3) { i = 0; Pause();