Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 17 additions & 18 deletions RECmd/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ private static async Task Main(string[] args)

var syncOpt = new Option<bool>("--sync")
{
Description = "Deduplicate If true, the latest batch files from https://github.com/EricZimmerman/RECmd/tree/master/BatchExamples are downloaded and local files updated or -d & VSCs based on SHA-1. First file found wins",
Description = "If true, the latest batch files from https://github.com/EricZimmerman/RECmd/tree/master/BatchExamples are downloaded and local files updated",
DefaultValueFactory = _ => false
};

Expand Down Expand Up @@ -291,29 +291,29 @@ private static async Task Main(string[] args)
{
Description = "Search for <string> in value record's value names",
};
var sdOpt = new Option<string>("--minSize")
var sdOpt = new Option<string>("--sd")
{
Description = "Search for <string> in value record's value data",
};
var ssOpt = new Option<string>("--minSize")
var ssOpt = new Option<string>("--ss")
{
Description = "Search for <string> in value record's value slack",
};

_rootCommand = new RootCommand
{
fOpt,
dOpt,
knOpt,
vnOpt,
bnOpt,
csvOpt,
csvfOpt,
saveToOpt,
jsonOpt,
jsonfOpt,
detailsOpt,
base64Opt,
fOpt,
dOpt,
knOpt,
vnOpt,
bnOpt,
csvOpt,
csvfOpt,
saveToOpt,
jsonOpt,
jsonfOpt,
detailsOpt,
base64Opt,
minSizeOpt,
saOpt,
skOpt,
Expand Down Expand Up @@ -528,10 +528,9 @@ private static void DoWork(string d, string f, string kn, string vn, string bn,
if (CheckMinSwitches(sk, sv, sd, ss, sa, kn, minSize, base64, bn) == false)
{
Console.WriteLine();
Log.Error("One of the following switches is required: --sa | --sk | --sv | --sd | --ss | --kn | --base64 | --minSize | --bn");
Console.WriteLine();
var aaa = new CustomHelpAction(new HelpAction());
aaa.Invoke(_rootCommand.Parse("One of the following switches is required: --sa | --sk | --sv | --sd | --ss | --kn | --base64 | --minSize | --bn"));
Console.WriteLine();
Log.Information("Verify the command line and try again");
return;
}

Expand Down
Loading