1. John Mulligan
  2. vanity

Commits

John Mulligan  committed 7352d57

do not barf if cli.usage table is empty

  • Participants
  • Parent commits b55256e
  • Branches default

Comments (0)

Files changed (1)

File vanity/cli.py

View file
  • Ignore whitespace
     """
     if formatter is None:
         formatter = usage_formatter
+    if not table:
+        return
     table = OptionTable(table)
     maxlen = max(len(long) for long in table.longopts())
     for opt in table.table():