static void Main(string[] args) { try { SerialDump o = new SerialDump(args); o.Run(); } catch (ApplicationException) { } catch (Exception e) { Console.WriteLine("{0}", e.ToString()); } }
static void Main(string[] args) { try { if (String.Compare(args[0], "-?", true) == 0 || String.Compare(args[0], "/?", true) == 0) { Console.WriteLine("Usage: SerialDump.exe [-dump <dump_file>] [-timestamp] [-usb] [port] [baudrate]"); return; } using (SerialDump o = new SerialDump(args)) { o.Run(); } } catch (ApplicationException) { } catch (Exception e) { Console.WriteLine("{0}", e.ToString()); } }
static void Main( string[] args ) { try { SerialDump o = new SerialDump( args ); o.Run(); } catch(ApplicationException) { } catch(Exception e) { Console.WriteLine( "{0}", e.ToString() ); } }
static void Main( string[] args ) { try { if (String.Compare(args[0], "-?", true) == 0 || String.Compare(args[0], "/?", true) == 0) { Console.WriteLine("Usage: SerialDump.exe [-dump <dump_file>] [-timestamp] [-usb] [port] [baudrate]"); return; } using (SerialDump o = new SerialDump(args)) { o.Run(); } } catch (ApplicationException) { } catch (Exception e) { Console.WriteLine("{0}", e.ToString()); } }