Forums

Compiler -file option question

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

Compiler -file option question

Postby AlGonzalez » Tue Feb 12, 2008 11:48 pm

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?
AlGonzalez
 
Posts: 13
Location: Greenville, SC - USA

Re: Compiler -file option question

Postby Charles » Thu Feb 14, 2008 1:46 am

-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".
Charles
 
Posts: 2515
Location: Los Angeles, CA


Return to Discussion

Who is online

Users browsing this forum: No registered users and 34 guests