@arjunkhera/atlas 0.3.0 → 0.3.1

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "atlas",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Atlas: the delivery lifecycle, its crews and the Atlas tools, for any repository.",
5
5
  "author": {
6
6
  "name": "Arjun Khera"
package/door/cli.mjs CHANGED
@@ -51,6 +51,10 @@ Atlas ${ATLAS_VERSION}. Check version ${CHECK_VERSION}; it reads spec ${Object.k
51
51
  A person merges every file the tooling writer writes.
52
52
  `;
53
53
 
54
+ // A switch never takes the next word as its value, so it may come before a
55
+ // path: `atlas ste --share page.md` reads page.md (a miss on 6 October).
56
+ const SWITCHES = new Set(['help', 'share', 'replace-unknown', 'workflow', 'dry-run', 'local', 'skip-global', 'yes']);
57
+
54
58
  function options(argv) {
55
59
  const out = { _: [] };
56
60
  for (let index = 0; index < argv.length; index += 1) {
@@ -58,7 +62,7 @@ function options(argv) {
58
62
  if (!flag.startsWith('--')) { out._.push(flag); continue; }
59
63
  const key = flag.slice(2);
60
64
  const value = argv[index + 1];
61
- if (value === undefined || value.startsWith('--')) { out[key] = true; continue; }
65
+ if (SWITCHES.has(key) || value === undefined || value.startsWith('--')) { out[key] = true; continue; }
62
66
  out[key] = value;
63
67
  index += 1;
64
68
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arjunkhera/atlas",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Atlas: the delivery lifecycle, its crews and the Atlas tools, as a Claude Code plugin for any repository.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",