Beispiel #1
0
    public static int Main(string[] args)
    {
        int    i;
        int    len;
        string arg;
        var    po = new ParseOptions(args);

        if (po.Parse())
        {
            if ((len = po.newargs.Count) == 0)
            {
                Console.WriteLine("usage: csnm <file> [<fileN...>]");
                return(1);
            }
            for (i = 0; i < len; i++)
            {
                arg = po.newargs[i];
                var tp = new TypePrinter(po.opts, arg);
                tp.PrintTypes();
            }
        }
        else
        {
            Console.WriteLine("errors occured in command line options");
            return(1);
        }
        return(0);
    }