mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +13:00
More verbose command string
This commit is contained in:
parent
d6872d7b9f
commit
893ef9bcea
3 changed files with 11 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue