search for: optionsparser

Displaying 4 results from an estimated 4 matches for "optionsparser".

Did you mean: optionparser
2006 Mar 20
1
I need some help with OptionsParser
Hey all, I must be doing something wrong here. Im calling the following file this way: ruby script.rb -s 1234 or ruby script.rb -s1111 #Code snip require ''optparse'' opts = OptionParser.new opts.on("-s", "--size VAL", Integer) do |val| puts "-s #{val}" puts val end But..no matter what I do, I don''t get any values out. I must be doing
2013 May 10
0
[LLVMdev] CommandLine: using cl::Positional with enum
...is present in any of the arguments. ./prog <option1> | ( <option2> arg1 arg2) | ( <option3> arg1 ) The problem is clear: in this case, the arguments can't be optional. So I thought to delete all the "cl:opt" and process the arguments before calling: ClangTool Tool(OptionsParser.getCompilations(), OptionsParser.getSourcePathList()); in order to give an error if the arguments provided were not correct. But, if arguments are correct, then the next error is shown: warning: /home/user/clang-llvm/build/arg1: 'linker' input unused error: unable to handle compilation, e...
2013 May 12
0
[LLVMdev] CommandLine: using cl::Positional with enum
...ts. > > ./prog <option1> | ( <option2> arg1 arg2) | ( <option3> arg1 ) > > The problem is clear: in this case, the arguments can't be optional. So I > thought to delete all the "cl:opt" and process the arguments before calling: > > ClangTool Tool(OptionsParser.getCompilations(), > OptionsParser.getSourcePathList()); Oh you're using Clang stuff. I know nothing about this so I can't really help you here. > in order to give an error if the arguments provided were not correct. But, > if arguments are correct, then the next error is shown:...
2013 May 14
0
[LLVMdev] CommandLine: using cl::Positional with enum
...lt;option1> | ( <option2> arg1 arg2) | ( <option3> arg1 ) >> >> The problem is clear: in this case, the arguments can't be optional. So I >> thought to delete all the "cl:opt" and process the arguments before calling: >> >> ClangTool Tool(OptionsParser.getCompilations(), >> OptionsParser.getSourcePathList()); >> > Oh you're using Clang stuff. I know nothing about this so I can't > really help you here. > > >> in order to give an error if the arguments provided were not correct. But, >> if arguments a...