* gacutil.cs: ack, miguel is right, cmdline handling needs some love.
svn path=/trunk/mcs/; revision=26518
+2004-05-01 Todd Berman <tberman@sevenl.net>
+
+ * gacutil.cs: ack, miguel is right, cmdline handling needs some love.
+
2004-04-30 Todd Berman <tberman@sevenl.net>
* gacutil.cs: cleanup help.
args = stripped;
}
- if (args[args.Length - 2] == "/root" || args[args.Length - 2] == "-root" || args[args.Length - 2] == "--root") {
+ if (args.Length >= 2 && (args[args.Length - 2] == "/root" || args[args.Length - 2] == "-root" || args[args.Length - 2] == "--root")) {
gac_path = Path.Combine (Path.Combine (args[args.Length - 1], "mono"), "gac");
gac_path += Path.DirectorySeparatorChar;