Commit 59944bb
docs+test+ergonomics(cli): address Copilot review on #1086 export
Three corrections from @copilot-pull-request-reviewer:
1. **Top-of-module docstring updated.** The "Commands" list and
"Examples" block now mention `mempalace export -o <dir>` so
`mempalace --help` documents the new subcommand consistently
with the rest. The epilog is built from this docstring via
__doc__, so a stale list is what users actually see.
2. **Per-subcommand --palace dropped.** Other subcommands
(mine/search/mcp/status/wake-up) all read args.palace from
the global root-parser flag; export's local duplicate broke
that consistency. Replaced with a comment explaining the
choice. Usage is now `mempalace --palace <p> export -o <d>`.
(cmd_export already accesses args.palace, which still resolves
correctly via the global parser.)
3. **test_main_export_dispatches added.** Mirrors the
test_main_<cmd>_dispatches pattern used for every other
subcommand. Asserts the argparse wiring delivers both the
global --palace and the -o/--output to cmd_export, and locks
in that --output (long form) is also accepted.
45/45 tests pass in tests/test_cli.py.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 4790316 commit 59944bb
2 files changed
Lines changed: 36 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
1784 | 1786 | | |
1785 | 1787 | | |
1786 | 1788 | | |
1787 | | - | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
1788 | 1793 | | |
1789 | 1794 | | |
1790 | 1795 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
823 | 823 | | |
824 | 824 | | |
825 | 825 | | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
826 | 856 | | |
827 | 857 | | |
828 | 858 | | |
| |||
0 commit comments