More verbose command string

This commit is contained in:
Jaex 2020-06-19 19:30:24 +03:00
parent d6872d7b9f
commit 893ef9bcea
3 changed files with 11 additions and 4 deletions

View file

@ -46,11 +46,18 @@ public bool CheckCommand(string command)
public override string ToString()
{
string text = string.Format("Command: \"{0}\"", Command);
string text = "";
if (IsCommand)
{
text += "-";
}
text += Command;
if (!string.IsNullOrEmpty(Parameter))
{
text += string.Format(" Parameter: \"{0}\"", Parameter);
text += " \"" + Parameter + "\"";
}
return text;

View file

@ -89,7 +89,7 @@ public static string ExtractPackage(string packageFilePath, string destination)
return true;
}
if (entry.FullName.Equals(ConfigFileName, StringComparison.OrdinalIgnoreCase))
if (configJson == null && entry.FullName.Equals(ConfigFileName, StringComparison.OrdinalIgnoreCase))
{
using (Stream stream = entry.Open())
using (StreamReader streamReader = new StreamReader(stream, Encoding.UTF8))

View file

@ -1051,7 +1051,7 @@ public void UseCommandLineArgs(List<CLICommand> commands)
foreach (CLICommand command in commands)
{
DebugHelper.WriteLine("CommandLine: " + command.Command);
DebugHelper.WriteLine("CommandLine: " + command);
if (command.IsCommand)
{