Skip to content

Commit 7c915af

Browse files
ajakkarthurzam
authored andcommitted
Support --columns 0 which disables column limiting
The lack of this feature appears when piping bugz output, which produces unexpected results even without specifying a column limit. Signed-off-by: John Helmert III <[email protected]> Closes: #110 Signed-off-by: Arthur Zamarin <[email protected]>
1 parent 272c4fb commit 7c915af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bugz/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def list_bugs(buglist, settings):
9494
line = '%s %-12s' % (line, severity)
9595
line = '%s %-20s' % (line, assignee)
9696
line = '%s %s' % (line, desc)
97-
print(line[:settings.columns])
97+
print(line[:settings.columns] if settings.columns else line)
9898

9999
log_info("%i bug(s) found." % len(buglist))
100100

0 commit comments

Comments
 (0)