Skip to content

Commit 3aacbf9

Browse files
committed
Format code example
1 parent 51aed00 commit 3aacbf9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/option_parser.cr

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,12 +221,15 @@ class OptionParser
221221
end
222222

223223
# Establishes a handler for boolean flags, e.g.
224+
#
225+
# ```
224226
# # Choose on or off
225227
# OptionParser.parse(args) do |opts|
226228
# opts.bool("--[no-]verbose", "Run verbosely") do |v|
227229
# flag = v
228230
# end
229231
# end
232+
# ```
230233
def bool(flag : String, description : String, &block : Bool ->)
231234
append_flag flag, description
232235

0 commit comments

Comments
 (0)