From b287e0bd833e0d48e8404c661c360299bacee5ec Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Thu, 8 Jul 2010 21:13:07 +0100 Subject: [PATCH] [sparklediff] Allow giving relative paths as arguments --- SparkleDiff/SparkleDiff.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SparkleDiff/SparkleDiff.cs b/SparkleDiff/SparkleDiff.cs index 831406d1..4d330b24 100644 --- a/SparkleDiff/SparkleDiff.cs +++ b/SparkleDiff/SparkleDiff.cs @@ -95,7 +95,7 @@ namespace SparkleShare { Environment.Exit (0); } - string file_path = args [0]; + string file_path = System.IO.Path.GetFullPath (args [0]); if (File.Exists (file_path)) { @@ -166,7 +166,7 @@ namespace SparkleShare { Console.WriteLine (" "); Console.WriteLine (_("SparkleDiff let's you compare revisions of an image file side by side.")); Console.WriteLine (" "); - Console.WriteLine (_("Usage: sparklediff [PATH]")); + Console.WriteLine (_("Usage: sparklediff [FILE]")); Console.WriteLine (_("Open an image file to show its revisions")); Console.WriteLine (" "); Console.WriteLine (_("Arguments:"));