Commit a562c69
remote/client: sphinx autoprogram workarounds
Hide intentionally undocumented subcommands and overlong lists of
choices.
Work around shortcomings of autoprogram's subcommand handling:
- Don't show the --help, -h option for each subparser
- Display aliases as `command subcommand|alias --option`
- Show the "help" message of the subparser
- Don't show ranges in "choices"
Signed-off-by: Jonas Rebmann <jre@pengutronix.de>
[bst: renamed for_manpage -> auto_doc_mode, switched its default to
False, autoprogram now calls
"labgrid.remote.client:get_parser(auto_doc_mode=True)", replaced
monkey-patched _SubParsersAction.add_parser() with _ActionWrapper class,
don't show `range` in `choices` generically, adjust commit message]
Signed-off-by: Bastian Krause <bst@pengutronix.de>1 parent b1e6af3 commit a562c69
File tree
3 files changed
+225
-540
lines changed- doc/man
- labgrid/remote
- man
3 files changed
+225
-540
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1758 | 1758 | | |
1759 | 1759 | | |
1760 | 1760 | | |
1761 | | - | |
1762 | | - | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
| 1803 | + | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
1763 | 1813 | | |
1764 | 1814 | | |
1765 | 1815 | | |
| |||
1797 | 1847 | | |
1798 | 1848 | | |
1799 | 1849 | | |
1800 | | - | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
1801 | 1853 | | |
1802 | | - | |
1803 | | - | |
1804 | | - | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
1805 | 1857 | | |
1806 | 1858 | | |
1807 | 1859 | | |
| |||
0 commit comments