test/dummy/cogy/fully_fledged.rb in cogy-0.1.0 vs test/dummy/cogy/fully_fledged.rb in cogy-0.1.1
- old
+ new
@@ -1,7 +1,7 @@
on "calc",
args: [:a, :b],
- opts: { op: { description: "The operation to perform", type: "string" } },
+ opts: { op: { description: "The operation to perform", type: "string", required: true } },
desc: "Perform an arithmetic operation between two numbers",
long_desc: "Operations supported are provided with their respective symbols
passed as the --op option.",
examples: "Addition:\n\n !calc --op + 1 2\n\n" \
"Subtraction:\n\n !calc --op - 5 3\n\n" \