remove default site from guibulkimport

This commit is contained in:
Steffen Schaumburg 2011-04-07 09:16:35 +02:00
parent ecb9c35522
commit ed8966a498

View File

@ -344,7 +344,7 @@ def main(argv=None):
help=_("Input file in quiet mode")) help=_("Input file in quiet mode"))
parser.add_option("-q", "--quiet", action="store_false", dest="gui", default=True, parser.add_option("-q", "--quiet", action="store_false", dest="gui", default=True,
help=_("don't start gui; deprecated (just give a filename with -f).")) 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)")) help=_("Conversion filter (*Full Tilt Poker, PokerStars, Everleaf, Absolute)"))
parser.add_option("-x", "--failOnError", action="store_true", default=False, parser.add_option("-x", "--failOnError", action="store_true", default=False,
help=_("If this option is passed it quits when it encounters any error")) help=_("If this option is passed it quits when it encounters any error"))
@ -389,6 +389,8 @@ def main(argv=None):
main_window.show() main_window.show()
gtk.main() gtk.main()
else: 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 #Do something useful
importer = fpdb_import.Importer(False,settings, config, None) importer = fpdb_import.Importer(False,settings, config, None)
# importer.setDropIndexes("auto") # importer.setDropIndexes("auto")