Page 1 of 1

Compiler -file option question

PostPosted: Tue Feb 12, 2008 11:48 pm
by AlGonzalez
Can options be included (1 per line) in the file that is passed using the -file option of the compiler?

If not, what is the best way to pass multiple references to the compiler?

Re: Compiler -file option question

PostPosted: Thu Feb 14, 2008 1:46 am
by Charles
-file does not pick up args.

I use a .bat file or unix script. For example, to compile the compiler, I have comp.bat with contents:
Code: Select all
cls
Snapshot\cobra.exe -compile -color -debug -timeit %* -files:files-to-compile.text

I am in favor of a command line arg that picks up other args from another file, or enhancing -file to do so and giving it a better name (-args-file?). C#'s approach is "response files" and the @ prefix all of which is very strange!

For multiple refs:
Code: Select all
cobra -r:Foo.Bar -r:Foo.Baz MyProg.cobra

You can include the ".dll" if you like as in "-r:Foo.Bar.dll".