Skip to content

Commit a11c03e

Browse files
committed
Use -r with less for help output
On some platforms, such as Fedora, groff by default outputs control characters which less will display escaped by default (on other platforms such as Debian and OSX this is disabled via local customisations and falls back to the old method of backspacing over characters). Using less -R as the pager means that output looks correct in both cases.
1 parent 1eca8c3 commit a11c03e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

awscli/help.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class PosixHelpRenderer(HelpRenderer):
7171
Linux and MacOS X.
7272
"""
7373

74-
PAGER = 'less'
74+
PAGER = 'less -R'
7575

7676
def get_pager_cmdline(self):
7777
pager = self.PAGER

0 commit comments

Comments
 (0)