Permalink
Browse files

Repaired get_options function in the ShowUrls command to avoid confli…

…cts with other commands
  • Loading branch information...
1 parent 737edbb commit 59f4fe879a83e7571c542e8cc7ed3fb69416c566 @fgimian fgimian committed Feb 9, 2014
Showing with 9 additions and 10 deletions.
  1. +9 −10 flask_script/commands.py
@@ -390,16 +390,15 @@ def __init__(self, order='rule'):
self.order = order
def get_options(self):
- options = super(ShowUrls, self).get_options()
- options += Option('url',
- nargs='?',
- help='Url to test (ex. /static/image.png)',
- ),
- options += Option('--order',
- dest='order',
- default=self.order,
- help='Property on Rule to order by (default: %s)' % self.order,
- ),
+ return (
+ Option('url',
+ nargs='?',
+ help='Url to test (ex. /static/image.png)'),
+ Option('--order',
+ dest='order',
+ default=self.order,
+ help='Property on Rule to order by (default: %s)' % self.order)
+ )
return options

0 comments on commit 59f4fe8

Please sign in to comment.