Skip to content

docs(cli): clarify that 'mempalace init' requires <dir> (#210)#862

Merged
bensig merged 1 commit intoMemPalace:developfrom
arnoldwender:fix/210-init-docs-require-dir
Apr 15, 2026
Merged

docs(cli): clarify that 'mempalace init' requires <dir> (#210)#862
bensig merged 1 commit intoMemPalace:developfrom
arnoldwender:fix/210-init-docs-require-dir

Conversation

@arnoldwender
Copy link
Copy Markdown
Contributor

What and Why

Closes #210. The reporter ran mempalace init with no argument and hit
error: the following arguments are required: dir, because the docs led them
to believe init just sets up ~/.mempalace/.

Root Cause

Two doc locations de-emphasized the required positional <dir>:

  • website/reference/cli.md — the "What it does" list made "Creates ~/.mempalace/ config directory" sound like the primary effect of init, without reinforcing that <dir> is required.
  • website/guide/getting-started.md — the Quick Start walked straight into mempalace init ~/projects/myapp without noting that a directory argument is mandatory.

Change Summary

  • website/reference/cli.md — mark <dir> as Required, add mempalace init . as the current-directory usage, re-order the "What it does" list so scanning <dir> is listed first, and add a short note about the argparse error users see when they forget the argument.
  • website/guide/getting-started.md — add a one-line note that <dir> is required, show mempalace init . as an alternative, and soften "Sets up" to "Ensures … exists" to avoid implying init's only job is creating the global dir.

No CLI/code changes — this is a documentation-only PR and does not conflict with #857 (init directory creation/normalization).

Test Plan

  • Manually re-read both docs to confirm <dir> is now unambiguously required
  • Verified the CLI still rejects mempalace init with no arg (expected behavior kept; docs now match)

Closes #210

Fixes MemPalace#210.

The CLI requires a positional <dir> argument. Previous docs emphasized
that init 'sets up ~/.mempalace/' which misled users into expecting
no arguments. Now the docs show <dir> is required, offer '.' as the
usage for the current directory, and reword the description so the
project-directory scan is listed first.
@igorls igorls added documentation Improvements or additions to documentation area/cli CLI commands labels Apr 14, 2026
Copy link
Copy Markdown
Collaborator

@bensig bensig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code reviewed — no issues found. CLAUDE.md compliance verified.

@bensig bensig merged commit f36d04e into MemPalace:develop Apr 15, 2026
6 checks passed
@arnoldwender arnoldwender deleted the fix/210-init-docs-require-dir branch April 15, 2026 21:18
igorls added a commit that referenced this pull request Apr 16, 2026
Advisor caught: initial boundary (962776c..develop) skipped PRs that
landed on develop after v3.3.0 tag but before the sync-back merge.
Adds entries for #871 MEMPAL_VERBOSE, #811 research() local-only
default, #866 init .gitignore, #864 MCP stdout redirect, #863
precompact hook, #865 searcher empty results, #831 cold-start palace,
#862 init help, #815 Slack provenance, #840 save hook auto-mine.
Also drops the awkward caveat on #846 created_at — it's post-v3.3.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cli CLI commands documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Init in documentation has no dir, but is required

3 participants