Commit b905d04
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 9258b9e commit b905d04
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 | | |
| |||
791 | 793 | | |
792 | 794 | | |
793 | 795 | | |
794 | | - | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
795 | 800 | | |
796 | 801 | | |
797 | 802 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
361 | 391 | | |
362 | 392 | | |
363 | 393 | | |
| |||
0 commit comments