View | Details | Raw Unified | Return to bug 8370
Collapse All | Expand All

(-)a/tlmisc/optcomplete/optcomplete.py (+9 lines)
Lines 351-356 def autocomplete( parser, Link Here
351
                    raise SystemExit(
351
                    raise SystemExit(
352
                        "Error: optparse option with a completer "
352
                        "Error: optparse option with a completer "
353
                        "does not take arguments: %s" % str(option))
353
                        "does not take arguments: %s" % str(option))
354
355
            # Prev starts with '-' but no corresponding option could be
356
            # identified. This is likely due to squashed short opts as in -a -b
357
            # -c -> -abc, in which case we don't try to complete since it's not
358
            # unambiguous which option completer to use.
359
            elif not option:
360
                sys.exit(exit_code)
361
362
354
    except KeyError:
363
    except KeyError:
355
        pass
364
        pass
356
365

Return to bug 8370