public static int Main(string[] args) { CmdLine cmd = new CmdLine(args); if (cmd.ArgNum < 1) { PrintUsage(); return(-1); } PoseSeq psq = new PoseSeq(); psq.Load(cmd.mArgs[0]); TextWriter tw = Console.Out; string outName = cmd.GetStringOpt("out", null); if (outName != null) { tw = Util.MakeTextFile(outName); } psq.WriteInfo(tw); if (outName != null) { tw.Close(); } return(0); }
public static int Main(string[] args) { CmdLine cmd = new CmdLine(args); if (cmd.ArgNum < 1) { PrintUsage(); return -1; } PoseSeq psq = new PoseSeq(); psq.Load(cmd.mArgs[0]); TextWriter tw = Console.Out; string outName = cmd.GetStringOpt("out", null); if (outName != null) { tw = Util.MakeTextFile(outName); } psq.WriteInfo(tw); if (outName != null) { tw.Close(); } return 0; }