Second occurrence of the same code (see above). Create a function and use it instead of lambda.
Use space after the comma. Even though I haven't found it explicitly mentioned in PEP 0008 there are many examples of the code with this formatting.
Issues were fixed..
As discussed in person I'd like to have the formatter class to be really class. Basically it will inherit from HelpFormatter and hardcode the width in constructor call.
Previous attempts to format man page using custom formatter were unsuccessful, so I decided to edit env variable to make default terminal width smaller just for printing man page.
I would suggest to fix #50 so that manpage can be generated by Sphinx instead of writing complex Python code. @lsedlar what do you think?
I agree with @cqi that using Sphinx could be a way forward. Currently generated man pages are bad – it should not be word-wrapped. No matter what hardcoded width we set, there will be cases where it does not work.
So, close this issue.
For the documentation, please follow up #50
Pull-Request has been closed by araszka