private static int Init(IList <string> args) { if (args.Count < 1) { Console.WriteLine("manos --init <AppName>"); Console.WriteLine("This will initialize a new application with the supplied name."); } Driver d = new Driver(); try { Console.WriteLine("initing: {0}", args [0]); d.Init(args [0]); } catch (Exception e) { Console.WriteLine("error while initializing application:"); Console.WriteLine(e); return(1); } return(0); }
private static int Init(IList<string> args) { if (args.Count < 1) { Console.WriteLine ("manos --init <AppName>"); Console.WriteLine ("This will initialize a new application with the supplied name."); } Driver d = new Driver (); try { Console.WriteLine ("initing: {0}", args [0]); d.Init (args [0]); } catch (Exception e) { Console.WriteLine ("error while initializing application:"); Console.WriteLine (e); return 1; } return 0; }
private static int Init(IList<string> args) { if (args.Count < 1) { Console.WriteLine (string.Format ("{0} --init <AppName>", MANOS_TOOLNAME)); Console.WriteLine ("This will initialize a new application with the supplied name."); } Driver d = new Driver (); if (args.Count <= 0) { Console.WriteLine ("Error: Unable to init without an AppName."); return 1; } try { Console.WriteLine ("initing: {0}", args [0]); d.Init (args [0]); } catch (Exception e) { Console.WriteLine ("error while initializing application:"); Console.WriteLine (e); return 1; } return 0; }