| Server IP : 82.208.35.60 / Your IP : 216.73.216.168 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/devel/awscli/files/ |
Upload File : |
--- awscli/help.py.orig 2019-08-27 18:05:04 UTC
+++ awscli/help.py
@@ -107,13 +107,16 @@ class PosixHelpRenderer(PagingHelpRenderer):
def _convert_doc_content(self, contents):
man_contents = publish_string(contents, writer=manpage.Writer())
- if not self._exists_on_path('groff'):
+ if self._exists_on_path('groff'):
+ cmdline = ['groff', '-m', 'man', '-T', 'ascii']
+ elif self._exists_on_path('mandoc'):
+ cmdline = ['mandoc', '-man', '-T', 'ascii']
+ else:
raise ExecutableNotFoundError('groff')
- cmdline = ['groff', '-m', 'man', '-T', 'ascii']
LOG.debug("Running command: %s", cmdline)
p3 = self._popen(cmdline, stdin=PIPE, stdout=PIPE, stderr=PIPE)
- groff_output = p3.communicate(input=man_contents)[0]
- return groff_output
+ man_output = p3.communicate(input=man_contents)[0]
+ return man_output
def _send_output_to_pager(self, output):
cmdline = self.get_pager_cmdline()