Register command statistics earlier.

This commit is contained in:
2019-01-05 20:21:57 +00:00
parent 372f9f68ac
commit a9f9b2f045
23 changed files with 24 additions and 34 deletions

View File

@@ -81,6 +81,7 @@ namespace DiscImageChef.Commands
MainClass.PrintCopyright();
if(MainClass.Debug) DicConsole.DebugWriteLineEvent += System.Console.Error.WriteLine;
if(MainClass.Verbose) DicConsole.VerboseWriteLineEvent += System.Console.WriteLine;
Statistics.AddCommand("analyze");
if(extra.Count > 1)
{
@@ -287,7 +288,6 @@ namespace DiscImageChef.Commands
return (int)ErrorNumber.UnexpectedException;
}
Statistics.AddCommand("analyze");
return (int)ErrorNumber.NoError;
}
}