From 15457e18ce9f9a895e7b927e5a16ce30771781ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Jerna=C5=9B?= Date: Wed, 18 Aug 2010 21:37:19 +0200 Subject: [PATCH] Synced naming with project guidelines Also a micro cleanup to get rid of a warning --- SparkleLib/Makefile.am | 2 +- SparkleLib/{MonoOptions.cs => SparkleOptions.cs} | 2 +- SparkleShare/SparkleShare.cs | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) rename SparkleLib/{MonoOptions.cs => SparkleOptions.cs} (99%) diff --git a/SparkleLib/Makefile.am b/SparkleLib/Makefile.am index 0c621372..9f8b44c4 100644 --- a/SparkleLib/Makefile.am +++ b/SparkleLib/Makefile.am @@ -5,7 +5,7 @@ LINK = $(REF_SPARKLELIB) SOURCES = \ Defines.cs \ - MonoOptions.cs \ + SparkleOptions.cs \ SparkleFetcher.cs \ SparkleHelpers.cs \ SparklePaths.cs \ diff --git a/SparkleLib/MonoOptions.cs b/SparkleLib/SparkleOptions.cs similarity index 99% rename from SparkleLib/MonoOptions.cs rename to SparkleLib/SparkleOptions.cs index b22bd87a..b071c429 100644 --- a/SparkleLib/MonoOptions.cs +++ b/SparkleLib/SparkleOptions.cs @@ -146,7 +146,7 @@ using NDesk.Options; #if NDESK_OPTIONS namespace NDesk.Options #else -namespace Mono.Options +namespace SparkleLib.Options #endif { public class OptionValueCollection : IList, IList { diff --git a/SparkleShare/SparkleShare.cs b/SparkleShare/SparkleShare.cs index ca51cc21..53c611f0 100644 --- a/SparkleShare/SparkleShare.cs +++ b/SparkleShare/SparkleShare.cs @@ -21,7 +21,7 @@ using System.Collections.Generic; using System.Diagnostics; using System.IO; using SparkleLib; -using Mono.Options; +using SparkleLib.Options; namespace SparkleShare { @@ -84,9 +84,8 @@ namespace SparkleShare { { "h|help", _("Print version information."), v=> ShowHelp = v != null } }; - List extra; try { - extra = p.Parse (args); + p.Parse (args); } catch (OptionException e) { Console.Write ("SparkleShare: ");