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:
parent
81974e12c2
commit
3650d1c564
@ -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
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user