From ed8966a498ee59125dce6cb1f3068c219c1ec0fc Mon Sep 17 00:00:00 2001 From: Steffen Schaumburg Date: Thu, 7 Apr 2011 09:16:35 +0200 Subject: [PATCH] remove default site from guibulkimport --- pyfpdb/GuiBulkImport.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyfpdb/GuiBulkImport.py b/pyfpdb/GuiBulkImport.py index 7388af24..69fc3484 100755 --- a/pyfpdb/GuiBulkImport.py +++ b/pyfpdb/GuiBulkImport.py @@ -344,7 +344,7 @@ def main(argv=None): help=_("Input file in quiet mode")) parser.add_option("-q", "--quiet", action="store_false", dest="gui", default=True, help=_("don't start gui; deprecated (just give a filename with -f).")) - parser.add_option("-c", "--convert", dest="filtername", default="PokerStars", metavar="FILTER", + parser.add_option("-c", "--convert", dest="filtername", default=None, metavar="FILTER", help=_("Conversion filter (*Full Tilt Poker, PokerStars, Everleaf, Absolute)")) parser.add_option("-x", "--failOnError", action="store_true", default=False, help=_("If this option is passed it quits when it encounters any error")) @@ -389,6 +389,8 @@ def main(argv=None): main_window.show() gtk.main() else: + if not options.filtername: + print _("You have to select a site with the -c parameter. E.g.:"), "Everleaf converter: ./GuiBulkImport.py -c Everleaf -f filename" #Do something useful importer = fpdb_import.Importer(False,settings, config, None) # importer.setDropIndexes("auto")