@besile/scm-cli 2026.3.35 → 2026.3.36

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@besile/scm-cli",
3
- "version": "2026.3.35",
3
+ "version": "2026.3.36",
4
4
  "description": "SCM CLI — Supply Chain Management CLI Tool",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -62,7 +62,10 @@ export async function buildRuntime(shortcut, flags, internalCtx) {
62
62
  const resolvedFlags = {};
63
63
 
64
64
  for (const flag of (shortcut.flags || [])) {
65
- const rawValue = flags[flag.name] ?? flags[flag.name.replace(/-/g, '')] ?? flag.default;
65
+ if (flag.required && flags[flag.name] === undefined) {
66
+ throw new Error(`missing required option '--${flag.name}'`);
67
+ }
68
+ const rawValue = flags[flag.name] ?? flag.default;
66
69
  if (rawValue !== undefined) {
67
70
  resolvedFlags[flag.name] = await resolveFlagInput(String(rawValue));
68
71
  }
@@ -51,8 +51,6 @@ function registerDomainShortcuts(program, domain, shortcuts, internalCtx) {
51
51
 
52
52
  if (flag.type === 'boolean') {
53
53
  cmd.option(`--${flag.name}`, description, defaultVal);
54
- } else if (flag.required) {
55
- cmd.requiredOption(flagSpec, description);
56
54
  } else {
57
55
  cmd.option(`${flagSpec}`, description, defaultVal);
58
56
  }