This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Arfrever
Recipients Arfrever, alexis, eric.araujo, tarek
Date 2011-11-14.14:34:26
SpamBayes Score 7.52507e-06
Marked as misclassified No
Message-id <1321281268.02.0.339671708656.issue13399@psf.upfronthosting.co.za>
In-reply-to
Content
$ python3.3 setup.py build --some-option
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: option --some-option not recognized
$ pysetup3.3 run build --some-option
option --some-option not recognized
Traceback (most recent call last):
  File "/usr/lib64/python3.3/packaging/fancy_getopt.py", line 239, in getopt
    opts, args = getopt.getopt(args, short_opts, self.long_opts)
  File "/usr/lib64/python3.3/getopt.py", line 93, in getopt
    opts, args = do_longs(opts, args[0][2:], longopts, args[1:])
  File "/usr/lib64/python3.3/getopt.py", line 157, in do_longs
    has_arg, opt = long_has_args(opt, longopts)
  File "/usr/lib64/python3.3/getopt.py", line 174, in long_has_args
    raise GetoptError(_('option --%s not recognized') % opt, opt)
getopt.GetoptError: option --some-option not recognized

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib64/python3.3/packaging/run.py", line 653, in main
    return dispatcher()
  File "/usr/lib64/python3.3/packaging/run.py", line 642, in __call__
    return func(self, self.args)
  File "/usr/lib64/python3.3/packaging/run.py", line 91, in wrapper
    return f(*args, **kwargs)
  File "/usr/lib64/python3.3/packaging/run.py", line 271, in _run
    args = dispatcher._parse_command_opts(parser, args)
  File "/usr/lib64/python3.3/packaging/run.py", line 491, in _parse_command_opts
    args, opts = parser.getopt(args[1:])
  File "/usr/lib64/python3.3/packaging/fancy_getopt.py", line 241, in getopt
    raise PackagingArgError(msg)
packaging.errors.PackagingArgError: option --some-option not recognized
History
Date User Action Args
2011-11-14 14:34:28Arfreversetrecipients: + Arfrever, tarek, eric.araujo, alexis
2011-11-14 14:34:28Arfreversetmessageid: <1321281268.02.0.339671708656.issue13399@psf.upfronthosting.co.za>
2011-11-14 14:34:27Arfreverlinkissue13399 messages
2011-11-14 14:34:26Arfrevercreate