Commit 81ea5e3
committed
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 2e41e03 commit 81ea5e3
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 | |
|---|---|---|---|
| |||
1708 | 1708 | | |
1709 | 1709 | | |
1710 | 1710 | | |
1711 | | - | |
1712 | | - | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
1713 | 1763 | | |
1714 | 1764 | | |
1715 | 1765 | | |
| |||
1747 | 1797 | | |
1748 | 1798 | | |
1749 | 1799 | | |
1750 | | - | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
1751 | 1803 | | |
1752 | | - | |
1753 | | - | |
1754 | | - | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
1755 | 1807 | | |
1756 | 1808 | | |
1757 | 1809 | | |
| |||
0 commit comments