コード例 #1
0
ファイル: Program.cs プロジェクト: JorgMU/CreateLnk
        static void Main(string[] args)
        {
            Console.WriteLine("CreateLnk - [email protected] ({0})\r\n", _exeName);

              if (args.Length < 1)
              {
            ShowUse();
            Environment.Exit(0);
              }

              _opts = new Options(args, AllowedOptions.Options);

              if (_opts.ActiveOptions.Length < 1)
              {
            FatalExit("No options recognized.");
              }

              if (_opts.OptionExists(AllowedOptions.Verbose)) BeVerbose = true;
              if (_opts.OptionExists(AllowedOptions.WhatIf)) WhatIf = true;
              Verbose("Maximum verbosity enabled!");
              if (WhatIf) Push("* WhatIf enabled, no Link will be created.");

              Verbose(_opts.ToString());

              CreateShortcut();
        }