Skip to content

Commit fe5cd56

Browse files
jpheinclaude
andcommitted
feat: add --version flag to CLI (from upstream PR MemPalace#559)
Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 parent 173ace8 commit fe5cd56

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.claude-plugin/skills/mempalace/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ A searchable memory palace for AI — mine projects and conversations, then sear
1313
Ensure `mempalace` is installed:
1414

1515
```bash
16-
mempalace status
16+
mempalace --version
1717
```
1818

1919
If not installed:

mempalace/cli.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
from pathlib import Path
3535

3636
from .config import MempalaceConfig
37+
from .version import __version__
3738

3839

3940
def cmd_init(args):
@@ -554,6 +555,9 @@ def main():
554555
formatter_class=argparse.RawDescriptionHelpFormatter,
555556
epilog=__doc__,
556557
)
558+
parser.add_argument(
559+
"--version", action="version", version=f"mempalace {__version__}"
560+
)
557561
parser.add_argument(
558562
"--palace",
559563
default=None,

0 commit comments

Comments
 (0)