public static int ProcessArgs(string[] args) { if (args.Length == 0) { print_usage(); return(0); } ConfigSettings config = new ConfigSettings(); FffProcessor processor = new FffProcessor(config); LogOutput.Log("\nMatterSlice version {0}\n\n".FormatWith(ConfigConstants.VERSION)); if (ProcessArgs(args, config, processor) == 0) { return(0); } if (!Canceled) { using (new QuickTimer2("DoProcessing")) { processor.DoProcessing(); } } if (!Canceled) { processor.Dispose(); } if (Canceled) { processor.Cancel(); } Canceled = true; return(0); }