From f4bad2fe9dd1e8ac094d7bc919d6fca824030d35 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 1 Oct 2011 09:51:24 -0600 Subject: [PATCH] Fix #864018 (typo in manual --idth -> --width) --- src/calibre/library/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/library/cli.py b/src/calibre/library/cli.py index 61e7ec334d..29deaa680b 100644 --- a/src/calibre/library/cli.py +++ b/src/calibre/library/cli.py @@ -1040,7 +1040,7 @@ information is the equivalent of what is shown in the tags pane. parser.add_option('-r', '--categories', default='', dest='report', help=_("Comma-separated list of category lookup names.\n" "Default: all")) - parser.add_option('-w', '--idth', default=-1, type=int, + parser.add_option('-w', '--width', default=-1, type=int, help=_('The maximum width of a single line in the output. ' 'Defaults to detecting screen size.')) parser.add_option('-s', '--separator', default=',', @@ -1097,7 +1097,7 @@ def command_list_categories(args, dbpath): for j, field in enumerate(fields): widths[j] = max(widths[j], max(len(field), len(unicode(i[field])))) - screen_width = terminal_controller.COLS if opts.line_width < 0 else opts.line_width + screen_width = terminal_controller.COLS if opts.width < 0 else opts.width if not screen_width: screen_width = 80 field_width = screen_width//len(fields)