Skip to content

docs: add --force flag documentation to delete-contacts, move-contacts, merge-contacts#820

Open
shivv23 wants to merge 3 commits into
medic:mainfrom
shivv23:docs/add-force-flag-docs
Open

docs: add --force flag documentation to delete-contacts, move-contacts, merge-contacts#820
shivv23 wants to merge 3 commits into
medic:mainfrom
shivv23:docs/add-force-flag-docs

Conversation

@shivv23
Copy link
Copy Markdown

@shivv23 shivv23 commented May 8, 2026

Summary

The --force flag is parsed and used by all three hierarchy operation CLI actions, but was missing from the usage() help text. This PR adds consistent documentation for the flag.

Changes

  • src/fn/delete-contacts.js: Added --force to usage OPTIONS
  • src/fn/move-contacts.js: Added --force to usage OPTIONS
  • src/fn/merge-contacts.js: Added --force to usage OPTIONS

The --force flag controls whether the command prompts when the doc staging folder already contains files. When set, it continues using the existing folder without prompting.

Related

This work supports understanding the CLI interface for hierarchy operations that DMP 2026 issue medic/cht-core#10706 plans to port into cht-core as REST API endpoints.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant