dotmd-cli 0.70.1 → 0.70.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/dotmd.mjs +6 -0
  2. package/package.json +1 -1
package/bin/dotmd.mjs CHANGED
@@ -1382,6 +1382,12 @@ async function main() {
1382
1382
  let { command, explicitConfig, rootArg, typeArg, dryRun, verbose } = parsed;
1383
1383
  let restArgs = parsed.rest;
1384
1384
 
1385
+ // Tolerate accidentally pasting the command prefix twice, while leaving all
1386
+ // remaining arguments to the normal `use` grammar and path validation.
1387
+ if (command === 'use') {
1388
+ while (restArgs[0] === 'dotmd' && restArgs[1] === 'use') restArgs = restArgs.slice(2);
1389
+ }
1390
+
1385
1391
  // Reconstruct the active global flags for proxy commands (e.g. `watch`) that
1386
1392
  // re-invoke the CLI in a child process and must propagate them through.
1387
1393
  const globalFlagArgs = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dotmd-cli",
3
- "version": "0.70.1",
3
+ "version": "0.70.2",
4
4
  "description": "CLI for managing markdown documents with YAML frontmatter — index, query, validate, graph, export, lifecycle, and AI summaries.",
5
5
  "type": "module",
6
6
  "license": "MIT",