OSDN Git Service

StrokeStyleT.コマンドライン引数を処理する() に渡す args から、exe 名を除外。
authorくまかみ工房 <kumakamikoubou@gmail.com>
Sat, 15 Oct 2016 00:27:42 +0000 (09:27 +0900)
committerくまかみ工房 <kumakamikoubou@gmail.com>
Sat, 15 Oct 2016 00:27:42 +0000 (09:27 +0900)
StrokeStyleT/StrokeStyleT.cs

index 0903c99..3f6a1e2 100644 (file)
@@ -49,7 +49,7 @@ namespace SST
                        FDK.Log.BeginInfo( $"{FDK.Utilities.現在のメソッド名}" );
                        Debug.Assert( null == this.スレッド排他領域.デバイスリソース, "デバイスリソースの作成前であること。" );
 
-                       this.コマンドライン引数を処理する( Environment.GetCommandLineArgs() );
+                       this.コマンドライン引数を処理する( Environment.GetCommandLineArgs().Skip( 1 ) );  // 最初の要素は exe ファイル名なのでスキップする。
 
                        this.MainForm.Text = $"StrokeStyle<T> {System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString()}";
                        this.設計画面サイズdpx = new SharpDX.Size2F( 1920, 1080 );     // 設計画面サイズdpx(固定)
@@ -452,13 +452,12 @@ namespace SST
                //----------------
                #endregion
 
+               /// <param name="args">コマンドライン引数の列挙。exeファイル名は含まない。</param>
                private void コマンドライン引数を処理する( IEnumerable<string> args )
                {
                        FDK.Log.BeginInfo( $"{FDK.Utilities.現在のメソッド名}" );
-
-                       args = args.Skip( 1 );  // 最初の要素は exe ファイル名なのでスキップ。
-
-                       Mono.Options.OptionSet
+                       FDK.Log.Info( $"args.Count = {args.Count()}" );
+                       //Mono.Options.OptionSet