* gacutil.cs: (InstallAssembly): use Array.IndexOf to search for "/f", "-f" or "--force" instead of expecting it in a fixed place. svn path=/trunk/mcs/; revision=27537
@@ -1,3 +1,9 @@
+2004-05-17 Gonzalo Paniagua Javier <[email protected]>
+
+ * gacutil.cs:
+ (InstallAssembly): use Array.IndexOf to search for "/f", "-f" or
+ "--force" instead of expecting it in a fixed place.
2004-05-14 Todd Berman <[email protected]>
* gacutil.cs: Remove old file/symlink, thanks urs.
@@ -297,7 +297,8 @@ namespace Mono.Tools
bool force = false;
- if (args.Length == 2 && (args[1] == "-f" || args[1] == "--force" || args[1] == "/f")) {
+ if (Array.IndexOf (args, "/f") != -1 || Array.IndexOf (args, "-f") != -1 ||
+ Array.IndexOf (args, "--force") != -1) {
force = true;
}