Exemple #1
0
        public static void Main(string[] args)
        {
            var configuration = new HttpCallConfiguration();
            var optionSet     = CreateOptions(configuration);

            try
            {
                optionSet.Parse(args);

                var client = new RawHttpClient(configuration, Console.Out);
                client.MakeRawHttpCall();
            }
            catch (OptionException exception)
            {
                Console.WriteLine(exception.Message);
                ShowHelp(optionSet);
            }
        }
Exemple #2
0
        public static void Main(string[] args)
        {
            var configuration = new HttpCallConfiguration();
            var optionSet = CreateOptions(configuration);

            try
            {
                optionSet.Parse(args);

                var client = new RawHttpClient(configuration, Console.Out);
                client.MakeRawHttpCall();
            }
            catch (OptionException exception)
            {
                Console.WriteLine(exception.Message);
                ShowHelp(optionSet);
            }
        }