-
Notifications
You must be signed in to change notification settings - Fork 0
feat(cli): add --help and --version output #33
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededsetupInstallation, startup, or local configuration helpInstallation, startup, or local configuration help
Description
Activity
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededsetupInstallation, startup, or local configuration helpInstallation, startup, or local configuration help
The packaged
draftmoracommand currently starts the server for every invocation. New CLI users should be able to inspect usage and the installed version without starting the app.Suggested scope:
bin/draftmora.mjssodraftmora --helpanddraftmora -hprint concise usage and exit0before importing the server bundle.draftmora --versionanddraftmora -vto print the package version and exit0before importing the server bundle.draftmorabehavior unchanged.API_PORT,PORT,WEB_PORT,BOARD_DB_PATH, andOPENAI_API_KEY.Acceptance criteria:
node bin/draftmora.mjs --helpprints usage and does not start the Fastify server.node bin/draftmora.mjs --versionprints the current package version.npm run typecheck,npm test, andnpm pack --dry-runpass.