[Pkg-bazaar-commits] ./bzr/unstable r381: - Better message when a wrong argument is given

Martin Pool mbp at sourcefrog.net
Fri Apr 10 07:52:07 UTC 2009


------------------------------------------------------------
revno: 381
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Thu 2005-05-05 19:50:17 +1000
message:
  - Better message when a wrong argument is given
modified:
  bzrlib/commands.py
-------------- next part --------------
=== modified file 'bzrlib/commands.py'
--- a/bzrlib/commands.py	2005-05-05 08:26:20 +0000
+++ b/bzrlib/commands.py	2005-05-05 09:50:17 +0000
@@ -857,7 +857,7 @@
     allowed = cmd_class.takes_options
     for oname in opts:
         if oname not in allowed:
-            raise BzrCommandError("option %r is not allowed for command %r"
+            raise BzrCommandError("option '--%s' is not allowed for command %r"
                                   % (oname, cmd))
 
     # mix arguments and options into one dictionary



More information about the Pkg-bazaar-commits mailing list