[Mono-list] Bug in command-line handling of mcs.exe

Jonathan Pryor jonpryor@vt.edu
21 Feb 2002 12:24:13 -0500


On Thu, 2002-02-21 at 10:48, Miguel de Icaza wrote:
> I have added a hack for now, so that /? and /help and /h will do what
> you expect them to, but this is a short term solution.  The long term
> solution needs to explore the following:
> 
> 	* Always handle /option like --option, and have a special
> 	  /quote to "quote" the next option as a filename, so
> 	  if you really wanted to compile /? (which btw, right now
> 	  we refuse to, because it has to end in .cs), then you would
> 	  use:
> 		mcs /quote /?
> 
> Miguel

Isn't the "standard" way to use "--" to disable option parsing?  e.g.:

	mcs -- /?

IIRC, this is what most of the other GNU tools use when you want to
operate on a file with the same name as a program argument, e.g.:

	cat -- --help

 - Jon