Make the additional arguments error say what the additional arguments are

This commit is contained in:
Chris Jones 2009-05-05 00:30:58 +01:00
parent ee1490dc4a
commit 02412a1f6d

View File

@ -110,7 +110,7 @@ inside the terminal")
(options, args) = parser.parse_args ()
if len (args) != 0:
parser.error("Expecting zero additional arguments, found: %d" % len (args))
parser.error("Expecting zero additional arguments, found: %d: %s" % (len (args), args))
if options.no_gconf and options.profile:
parser.error("using --no-gconf and defining a profile at the same time \