Show More
@@ -3821,7 +3821,19 b' def help_(ui, name=None, **opts):' | |||||
3821 |
|
3821 | |||
3822 | textwidth = min(ui.termwidth(), 80) - 2 |
|
3822 | textwidth = min(ui.termwidth(), 80) - 2 | |
3823 |
|
3823 | |||
3824 | keep = ui.verbose and ['verbose'] or [] |
|
3824 | keep = [] | |
|
3825 | if ui.verbose: | |||
|
3826 | keep.append('verbose') | |||
|
3827 | if sys.platform.startswith('win'): | |||
|
3828 | keep.append('windows') | |||
|
3829 | elif sys.platform == 'OpenVMS': | |||
|
3830 | keep.append('vms') | |||
|
3831 | elif sys.platform == 'plan9': | |||
|
3832 | keep.append('plan9') | |||
|
3833 | else: | |||
|
3834 | keep.append('unix') | |||
|
3835 | keep.append(sys.platform.lower()) | |||
|
3836 | ||||
3825 | text = help.help_(ui, name, **opts) |
|
3837 | text = help.help_(ui, name, **opts) | |
3826 |
|
3838 | |||
3827 | formatted, pruned = minirst.format(text, textwidth, keep=keep) |
|
3839 | formatted, pruned = minirst.format(text, textwidth, keep=keep) |
General Comments 0
You need to be logged in to leave comments.
Login now