public void RegisterCommandT_ShouldReadFlagLazyEnvironmentVariable_IfSetAfterInitialization()
        {
            var testConfig = new TestConfig();

            LazyConfigPathArgumentsType commandArgs = null;

            Cli
            .Configure(c => c
                       .SetDialect(Dialect.Gnu)
                       .SetConfiguration(testConfig)
                       )
            .Root <LazyConfigPathArgumentsType>(c => c
                                                .SetExecute((args, output) => { commandArgs = args; })
                                                )
            .Run(new string[0]);

            testConfig
            .SetConfigValue("config.flag", "false");

            Assert.False(commandArgs.Flag.Value);
        }
        public void RegisterCommandT_ShouldReadLazyParameterEnvironmentVariable_IfSetAfterInitialization()
        {
            var testConfig = new TestConfig();

            LazyConfigPathArgumentsType commandArgs = null;

            Cli
            .Configure(c => c
                       .SetDialect(Dialect.Gnu)
                       .SetConfiguration(testConfig)
                       )
            .Root <LazyConfigPathArgumentsType>(c => c
                                                .SetExecute((args, output) => { commandArgs = args; })
                                                )
            .Run(new string[0]);

            testConfig
            .SetConfigValue("config.parameter", "env_p");

            Assert.Equal("env_p", commandArgs.Parameter.Value);
        }