Closed skull-squadron closed 4 years ago
class Converter < Admiral::Command define_flag input : String, description: "Whatever", default: "/dev/stdin", long: input, short: i, required: true def run puts "Input is #{flags.input}" end end
-i=foo --input=foo
-i=foo
--input=foo
-i foo --input foo -ifoo
-i foo
--input foo
-ifoo
@steakknife this should definitely work.
Yeah I tested and those Doesn't work cases all worked here.
Doesn't work
Works
-i=foo
--input=foo
Doesn't work
-i foo
--input foo
-ifoo