Commit c3deb6a3 authored by Kirill Smelkov's avatar Kirill Smelkov

gpython: Fix thinko when rejecting unknown -X option

Before:

    (z-dev) kirr@deca:~/src/tools/go/pygolang$ gpython -X gpython.zzz
    Traceback (most recent call last):
      File "/home/kirr/src/wendelin/venv/z-dev/bin/gpython", line 3, in <module>
        from gpython import main; main()
      File "/home/kirr/src/tools/go/pygolang/gpython/__init__.py", line 397, in main
        raise RuntimeError('gpython: unknown -X option %s' % opt)
    RuntimeError: gpython: unknown -X option -X                                        <-- NOTE

After:

    (z-dev) kirr@deca:~/src/tools/go/pygolang$ gpython -X gpython.zzz
    Traceback (most recent call last):
      File "/home/kirr/src/wendelin/venv/z-dev/bin/gpython", line 3, in <module>
        from gpython import main; main()
      File "/home/kirr/src/tools/go/pygolang/gpython/__init__.py", line 397, in main
        raise RuntimeError('gpython: unknown -X option %s' % arg)
    RuntimeError: gpython: unknown -X option gpython.zzz                               <-- NOTE

/proposed-for-review-on nexedi/pygolang!25
parent ff0c1041
Pipeline #34110 failed with stage
in 0 seconds