Skip to content

Commit

Permalink
Add bugreport to version
Browse files Browse the repository at this point in the history
  • Loading branch information
mher committed Jun 28, 2020
1 parent c3e38b5 commit afdea8c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion flower/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,16 @@ def extract_settings(self):

def early_version(self, argv):
if '--version' in argv:
if '--debug' in argv:
from flower.utils import bugreport
print(bugreport(), file=self.stdout)

print(__version__, file=self.stdout)
super(FlowerCommand, self).early_version(argv)

@staticmethod
def is_flower_option(arg):
name, _, value = arg.lstrip('-').partition("=")
name, _, _ = arg.lstrip('-').partition("=")
name = name.replace('-', '_')
return hasattr(options, name)

Expand Down

0 comments on commit afdea8c

Please sign in to comment.