Skip to content

Commit

Permalink
Updates for #378
Browse files Browse the repository at this point in the history
  • Loading branch information
SirSparkles committed Apr 29, 2018
1 parent a6c8122 commit 6842192
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions TVRename#/App/CommandLineArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public enum MissingFolderBehavior
Create
}

public bool Help { get; }
public bool Hide { get; }
public MissingFolderBehavior MissingFolder { get; set; } // TODO: Make read only
public bool RenameCheck { get; }
Expand All @@ -38,6 +39,7 @@ public enum MissingFolderBehavior
/// <param name="args">The command line arguments.</param>
public CommandLineArgs(ReadOnlyCollection<string> args)
{
this.Help = args.Contains("/?", StringComparer.OrdinalIgnoreCase);
this.Hide = args.Contains("/hide", StringComparer.OrdinalIgnoreCase);
this.RenameCheck = !args.Contains("/norenamecheck", StringComparer.OrdinalIgnoreCase);
this.Quit = args.Contains("/quit", StringComparer.OrdinalIgnoreCase);
Expand Down Expand Up @@ -76,11 +78,11 @@ public static string Helptext()
output.AppendLine("/hide will hide the UI");
output.AppendLine("/unattended same as /hide");
output.AppendLine("");
output.AppendLine("/recover will Recover will load a dialog box that enables the user to recover a prior TVDB.xml or TVRenameSettings.xml file");
output.AppendLine("/recover will load a dialog box that enables the user to recover a prior TVDB.xml or TVRenameSettings.xml file");
output.AppendLine("/userfilepath:BLAH Sets a custom folder path for the settings files.");
output.AppendLine("/createmissing will Create folders if they are missing.");
output.AppendLine("/ignoremissing will Ignore missing folders.");
output.AppendLine("/norenamecheck will Allows a request to an existing TV Rename session to scan without renaming.");
output.AppendLine("/norenamecheck requests an existing TV Rename session to scan without renaming.");
output.AppendLine("");
output.AppendLine("Further information is available at http://www.tvrename.com/cmd-line");

Expand Down
5 changes: 3 additions & 2 deletions TVRename#/App/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ private static void Main(string[] args)
if (args.Contains("/?", StringComparer.OrdinalIgnoreCase))
{
Logger.Info(CommandLineArgs.Helptext());
Console.WriteLine(CommandLineArgs.Helptext());
}
Console.Out.WriteLine(CommandLineArgs.Helptext());
return;
}
// Check if an application instance is already running
Mutex mutex = new Mutex(true, "TVRename", out bool newInstance);

Expand Down

0 comments on commit 6842192

Please sign in to comment.