Init() 개인적인 정적인 메소드

private static Init ( IList args ) : int
args IList
리턴 int
예제 #1
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);
        }
예제 #2
0
파일: Driver.cs 프로젝트: JoergEg/manos
        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;
        }
예제 #3
0
파일: Driver.cs 프로젝트: imphasing/manos
        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;
        }