2008-03-05 Raphael Ackermann <raphael.ackermann@gmail.com>

* src/ReportBase/_CommandLineReport.py: print warning if show=option is 
	not a valid option. Addresses some of 0001891.

svn: r10196
This commit is contained in:
Raphael Ackermann 2008-03-05 20:31:20 +00:00
parent 81974e12c2
commit 3650d1c564
2 changed files with 18 additions and 11 deletions

View File

@ -1,3 +1,7 @@
2008-03-05 Raphael Ackermann <raphael.ackermann@gmail.com>
* src/ReportBase/_CommandLineReport.py: print warning if show=option is
not a valid option. Addresses some of 0001891.
2008-03-05 Jerome Rapinat <romjerome@yahoo.fr> 2008-03-05 Jerome Rapinat <romjerome@yahoo.fr>
* src/plugins/DateParserDisplayTest.py: allow to translate QuestionDialog * src/plugins/DateParserDisplayTest.py: allow to translate QuestionDialog

View File

@ -3,6 +3,7 @@
# #
# Copyright (C) 2001-2007 Donald N. Allingham # Copyright (C) 2001-2007 Donald N. Allingham
# Copyright (C) 2008 Lukasz Rymarczyk # Copyright (C) 2008 Lukasz Rymarczyk
# Copyright (C) 2008 Raphael Ackermann
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
@ -55,7 +56,7 @@ import const
#------------------------------------------------------------------------ #------------------------------------------------------------------------
def _validate_options(options, dbase): def _validate_options(options, dbase):
""" """
Validates all options by making sure that their values are consistent with Validate all options by making sure that their values are consistent with
the database. the database.
menu: The Menu class menu: The Menu class
@ -355,7 +356,9 @@ class CommandLineReport:
print " %s" % self.options_help[self.show][2] print " %s" % self.options_help[self.show][2]
else: else:
self.show = None #there was a show option given, but the option is invalid
print ("option %s not valid. Use 'show=all' to see all valid "
"options." % self.show)
#------------------------------------------------------------------------ #------------------------------------------------------------------------
# #