Skip to content

Commit

Permalink
Fix exception thrown when no action specified
Browse files Browse the repository at this point in the history
Remove currently not yet implemented action from help text
  • Loading branch information
shinnova committed May 28, 2019
1 parent 23927c4 commit 4e7de7d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion FFXIV_TexTools_CLI/Arguments.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ public void ArgumentHandler(string[] args)
string helpText = $"Usage: {Path.GetFileName(Environment.GetCommandLineArgs()[0])} [action] {"{arguments}"}\n\n";
helpText = helpText + @"Available actions:
modpack import, mpi Import a modpack, requires a .ttmp(2) to be specified
mods list, ml List all currently installed mods
mods enable, me Enable all installed mods
mods disable, md Disable all installed mods
mods refresh, mr Enable/disable mods as specified in modlist.cfg
Expand All @@ -33,6 +32,11 @@ public void ArgumentHandler(string[] args)
-C, --custom Use a modpack's config file to selectively import mods from the pack (modpack import only)";
string ttmpPath = "";
bool customImport = false;
if (args.Length == 0)
{
main.PrintMessage(helpText);
return;
}
foreach (string cmdArg in args)
{
string nextArg = "";
Expand Down

0 comments on commit 4e7de7d

Please sign in to comment.