Beispiel #1
0
        static void InitializeApplication(string[] sysargs)
        {
            NArgsAnalyzer argsAnalyzers = new NArgsAnalyzer()
            {
                new CommandAnalyzer()
                {
                    new FieldAnalyzer()
                }
            };

            argsAnalyzers.IgnoreCases = true;
            argsAnalyzers.Analysis(sysargs);
            args = argsAnalyzers.ToObject <StartupArgs>();
        }
Beispiel #2
0
        static StartupArgs Initialize(string[] sysargs)
        {
            NArgsAnalyzer analyzer = new NArgsAnalyzer()
            {
                new CommandAnalyzer()
                {
                    new SwitchAnalyzer(),
                    new FieldAnalyzer(),
                },
            };

            analyzer.IgnoreCases = true;
            analyzer.Analysis(sysargs);

            return(analyzer.ToObject <StartupArgs>());
        }