Commits

John Mulligan committed 7352d57

do not barf if cli.usage table is empty

Comments (0)

Files changed (1)

     """
     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():