Skip to content

Commit

Permalink
CLI: Add missing arguments, include version and tweak text in help page
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxEG committed Mar 29, 2022
1 parent 9eeab52 commit a4407b3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions BSA Browser CLI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using BSA_Browser_CLI.Filtering;
using SharpBSABA2;
using SharpBSABA2.BA2Util;
Expand Down Expand Up @@ -315,6 +316,7 @@ static void PrintFileList(List<string> archives, ListOptions options)

static void PrintHelp()
{
Console.WriteLine("BSA Browser CLI - " + Assembly.GetExecutingAssembly().GetName().Version.ToString(3));
Console.WriteLine("Extract or list files inside .bsa and .ba2 archives.");
Console.WriteLine();
Console.WriteLine("bsab [OPTIONS] FILE [FILE...] [DESTINATION]");
Expand All @@ -327,17 +329,18 @@ static void PrintHelp()
Console.WriteLine(" F Prepend each line with full archive file path");
Console.WriteLine(" S Display file size");
Console.WriteLine(" -o, --overwrite Overwrite existing files");
Console.WriteLine(" -f FILTER Simple filtering. Wildcard supported");
Console.WriteLine(" --exclude FILTER Exclude files using simple filtering. Wildcard supported");
Console.WriteLine(" --regex REGEX Regex filtering");
Console.WriteLine(" -f FILTER Simple filtering. Wildcard supported. Case-insensitive");
Console.WriteLine(" --exclude FILTER Exclude using simple filtering. Wildcard supported. Case-insensitive");
Console.WriteLine(" --regex REGEX Regex filtering. Case-sensitive");
Console.WriteLine(" --encoding ENCODING Set encoding to use");
Console.WriteLine(" encodings utf7 (Default)");
Console.WriteLine(" system Use System's default encoding");
Console.WriteLine(" system Use system default encoding");
Console.WriteLine(" ascii");
Console.WriteLine(" unicode");
Console.WriteLine(" utf32");
Console.WriteLine(" utf8");
Console.WriteLine(" --noheaders Extract unsupported textures without DDS header instead of skipping");
Console.WriteLine(" --mtc Match time changed on extracted files with archive");
Console.WriteLine();
Console.WriteLine("Multiple filters can be defined and mixed. Filters are matched from first to last.");
Console.WriteLine();
Expand Down

0 comments on commit a4407b3

Please sign in to comment.