Commit 1e2f68c
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 fc80fef commit 1e2f68c
2 files changed
Lines changed: 36 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
1522 | 1524 | | |
1523 | 1525 | | |
1524 | 1526 | | |
1525 | | - | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
1526 | 1531 | | |
1527 | 1532 | | |
1528 | 1533 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
724 | 724 | | |
725 | 725 | | |
726 | 726 | | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
727 | 757 | | |
728 | 758 | | |
729 | 759 | | |
| |||
0 commit comments