From 9829ca96fd6621481eaa6779b91001f154e160f2 Mon Sep 17 00:00:00 2001 From: ttp Date: Sat, 28 Jun 2008 09:25:19 +0000 Subject: [PATCH] =?utf8?q?AppliStation-GUI,=E8=B5=B7=E5=8B=95=E5=BC=95?= =?utf8?q?=E6=95=B0=E4=B8=8D=E6=AD=A3=E6=99=82=E3=81=AB=E3=81=AF=E4=BE=8B?= =?utf8?q?=E5=A4=96=E8=A1=A8=E7=A4=BA=E3=82=92=E3=81=9B=E3=81=9A=E3=81=AB?= =?utf8?q?=E5=8D=98=E7=B4=94=E3=81=AA=E3=83=80=E3=82=A4=E3=82=A2=E3=83=AD?= =?utf8?q?=E3=82=B0=E3=82=92=E3=81=A0=E3=81=99=E3=82=88=E3=81=86=E3=81=AB?= =?utf8?q?=E3=81=97=E3=81=9F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: http://localhost/svn/AppliStation/trunk@930 34ed2c89-c49f-4a4b-abdb-c318350108cf --- AppliStation/Program.cs | 7 ++++++- na-get-lib/NaGet/ArgParser.cs | 6 ++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/AppliStation/Program.cs b/AppliStation/Program.cs index d05559c..496f417 100644 --- a/AppliStation/Program.cs +++ b/AppliStation/Program.cs @@ -82,7 +82,12 @@ namespace AppliStation public void Run(string[] args) { - parseArgs(args); + try { + parseArgs(args); + } catch (ApplicationException e) { + MessageBox.Show(e.Message, "AppliStation ‹N“®ˆø”ƒGƒ‰[", MessageBoxButtons.OK, MessageBoxIcon.Error); + return; + } switch ((string) appArgs["cmd"]) { case "install": diff --git a/na-get-lib/NaGet/ArgParser.cs b/na-get-lib/NaGet/ArgParser.cs index a30f5c1..94b7399 100644 --- a/na-get-lib/NaGet/ArgParser.cs +++ b/na-get-lib/NaGet/ArgParser.cs @@ -60,6 +60,7 @@ namespace NaGet /// /// ‘Ώۈø” /// Žc‚Á‚½(ƒIƒvƒVƒ‡ƒ“‚Å‚Í‚È‚¢)ˆø” + /// ˆø”‚ª•s³‚È‚Æ‚«‚Ü‚½‚́A‘¶Ý‚µ‚È‚¢ƒIƒvƒVƒ‡ƒ“‚ª‘¶Ý‚·‚é‚Æ‚« public string[] Parse(string[] args) { List rest = new List(); @@ -85,9 +86,10 @@ namespace NaGet } /// - /// ƒIƒvƒVƒ‡ƒ“ƒg[ƒNƒ“‚̉ðÍ + /// ƒIƒvƒVƒ‡ƒ“ƒg[ƒNƒ“‚ð‰ðÍA“ǂݍž‚Ý‚ð‚¨‚±‚È‚¤ /// - /// + /// ƒIƒvƒVƒ‡ƒ“ƒg[ƒNƒ“•¶Žš—ñ + /// ˆø”‚ª•s³‚È‚Æ‚«‚Ü‚½‚́A‘¶Ý‚µ‚È‚¢ƒIƒvƒVƒ‡ƒ“‚̏ꍇ private void parseOption(string option) { Match match = Regex.Match(option, "^--?([^=]+)(=\"?(.+)\"?)?$"); -- 2.11.0