commander icon indicating copy to clipboard operation
commander copied to clipboard

Why is a default value needed?

Open cserb opened this issue 6 years ago • 0 comments

I don't really understand the necessity. Even more it seems to be a bad place to define default values (unless required by design) Also I want to do something like:

if  !options.string["foo"].nil? && options.string["bar"].nil?
  puts "If you pass 'foo' you also have to pass 'bar'"
end

or just simply checking if a param was passed or not

cserb avatar Feb 26 '20 11:02 cserb