Skip to content

Commit 6f14013

Browse files
committed
Make the same as test_transcription.py
1 parent 208fd69 commit 6f14013

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

examples/example.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,11 @@ def __init__(self):
4040
# For option commands, pass a single argument string instead of a list of argument strings to the do_* methods
4141
set_use_arg_list(False)
4242

43-
@options([make_option('-p', '--piglatin', action="store_true", help="atinLay"),
44-
make_option('-s', '--shout', action="store_true", help="N00B EMULATION MODE"),
45-
make_option('-r', '--repeat', type="int", help="output [n] times")
46-
])
43+
opts = [make_option('-p', '--piglatin', action="store_true", help="atinLay"),
44+
make_option('-s', '--shout', action="store_true", help="N00B EMULATION MODE"),
45+
make_option('-r', '--repeat', type="int", help="output [n] times")]
46+
47+
@options(opts, arg_desc='(text to say)')
4748
def do_speak(self, arg, opts=None):
4849
"""Repeats what you tell me to."""
4950
arg = ''.join(arg)

0 commit comments

Comments
 (0)