[sparklediff] Allow giving relative paths as arguments

This commit is contained in:
Hylke Bons 2010-07-08 21:13:07 +01:00
parent 0f411eaba9
commit b287e0bd83

View file

@ -95,7 +95,7 @@ namespace SparkleShare {
Environment.Exit (0); Environment.Exit (0);
} }
string file_path = args [0]; string file_path = System.IO.Path.GetFullPath (args [0]);
if (File.Exists (file_path)) { if (File.Exists (file_path)) {
@ -166,7 +166,7 @@ namespace SparkleShare {
Console.WriteLine (" "); Console.WriteLine (" ");
Console.WriteLine (_("SparkleDiff let's you compare revisions of an image file side by side.")); Console.WriteLine (_("SparkleDiff let's you compare revisions of an image file side by side."));
Console.WriteLine (" "); Console.WriteLine (" ");
Console.WriteLine (_("Usage: sparklediff [PATH]")); Console.WriteLine (_("Usage: sparklediff [FILE]"));
Console.WriteLine (_("Open an image file to show its revisions")); Console.WriteLine (_("Open an image file to show its revisions"));
Console.WriteLine (" "); Console.WriteLine (" ");
Console.WriteLine (_("Arguments:")); Console.WriteLine (_("Arguments:"));