Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Nenkai committed Jan 30, 2024
1 parent 12eb2b0 commit b0c2a28
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions XenoTools.CLI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ public static void Export(SQLiteExportVerbs exportVerbs)
var bdat = new Bdat();
bdat.Regist(ii);

if (string.IsNullOrEmpty(ii))
exportVerbs.OutputPath = $"{Path.GetFileNameWithoutExtension(exportVerbs.InputPath)}.sqlite";
exportVerbs.OutputPath = $"{Path.GetFileNameWithoutExtension(ii)}.sqlite";

var _con = new SQLiteExporter();
_con.InitConnection(ii + ".sqlite");
Expand Down Expand Up @@ -229,10 +228,10 @@ public class DisassembleScriptVerbs
public string OutputPath { get; set; }
}

[Verb("bdat-to-sqlite", HelpText = "Export bdat to a SQLite file.")]
[Verb("bdat-to-sqlite", HelpText = "Export bdats to a SQLite files.")]
public class SQLiteExportVerbs
{
[Option('i', "input", Required = true, HelpText = "Input bdat file.")]
[Option('i', "input", Required = true, HelpText = "Input folder with bdat files.")]
public string InputPath { get; set; }

[Option('o', "output", HelpText = "Output sqlite file.")]
Expand Down

0 comments on commit b0c2a28

Please sign in to comment.