Skip to content

Commit 725faaf

Browse files
committed
Fix option list processing
1 parent 1d1f2e0 commit 725faaf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

flask_script/commands.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,12 @@ class Command(object):
9696
:param func: Initialize this command by introspecting the function.
9797
"""
9898

99-
option_list = []
99+
option_list = ()
100100

101101
def __init__(self, func=None):
102102
if func is None:
103+
if not self.option_list:
104+
self.option_list = []
103105
return
104106

105107
args, varargs, keywords, defaults = inspect.getargspec(func)

0 commit comments

Comments
 (0)