Exemple #1
0
        public static int Main(string[] args)
        {
            var options = CodeGeneratorOptions.Parse(args);

            if (options == null)
            {
                return(1);
            }

            Run(options);
            return(0);
        }
Exemple #2
0
        public static int Main(string[] args)
        {
            try {
                var options = CodeGeneratorOptions.Parse(args);
                if (options == null)
                {
                    return(1);
                }

                Run(options);
            } catch (BindingGeneratorException) {
                return(1);
            } catch (Exception ex) {
                Console.Error.WriteLine(Report.Format(true, 0, null, -1, -1, ex.ToString()));
                return(1);
            }

            return(0);
        }