Skip to content

Commit bfc6074

Browse files
committed
Merge branch 'v1.0' into v2
2 parents 96c5525 + 725faaf commit bfc6074

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,11 +96,13 @@ class Command(object):
9696
:param func: Initialize this command by introspecting the function.
9797
"""
9898

99-
option_list = []
99+
option_list = ()
100100
add_help = True
101101

102102
def __init__(self, func=None):
103103
if func is None:
104+
if not self.option_list:
105+
self.option_list = []
104106
return
105107

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

0 commit comments

Comments
 (0)