- Code: Select all
cobra -d foo bar
I get the error message:
- Code: Select all
cobra: error: Cannot find "bar" as a file.
How do I pass an argument in this scenario?
cobra -d foo bar
cobra: error: Cannot find "bar" as a file.
cobra -d foo bar baz
cobra -d -c foo bar baz
foo
# or on mono:
cobra -d -c foo bar baz
mono --debug foo.exe
cobra -d foo bar baz -- arg1 arg2
cobra myprog -- arg1 arg2
cobra -d foo arg1 arg2
cobra -d -files:foo,bar,baz arg1 arg2
cobra lib1 lib2 -run main arg1 arg2
cobra prog
# compiles and runs foo
cobra prog foo bar
# compiles and runs prog, passing foo and bar as arguments
cobra -c prog lib1 lib2
# compiles all. there can be no arguments passed on, because this is compilation only
cobra lib1 lib2 -run prog foo bar
# compiles and runs passing everything after prog as arguments
# of course, nothing prevents you from being explicit:
cobra -run prog
cobra -c prog
cobra -libs lib1 lib2 -run prog foo bar
# compiles and runs passing everything after prog as arguments
cobra -d -libs lib1 lib2 -run prog foo bar
# compiles and runs passing everything after prog as arguments
cobra -d Customer Quote Order LineItem Product -run Main -test 13
# compile only
cobra -d -c -files.text
# if you want to run right away:
cobra -d -files:files.text -run arg1 arg2
Chuck wrote:Note that Cobra will at some point automatically -ref the DLLs you use in your source such as "use System.Windows.Forms".
ref "HoldemHandEval.dll"
use HoldemHand
Users browsing this forum: No registered users and 23 guests