Skip to content

Commit 6c388b3

Browse files
committed
fixup! [WIP] subcommand parser
1 parent ce01af9 commit 6c388b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sample/optparse/subcommand.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
opts = {}
77
parser = OptionParser.new
88
parser.on('-i') { opts["i"] = true }
9-
parser.on('-o') { puts["o"] = true }
9+
parser.on('-o') { opts["o"] = true }
1010

1111
parser.subparser('add') {opts[:add] = {}}
1212
.on('-i') { opts[:add]["i"] = true }

0 commit comments

Comments
 (0)