@feigi/fleet-ctl 3.24.31 → 3.24.33
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 +1 -1
- package/scripts/arg.mjs +12 -9
package/package.json
CHANGED
package/scripts/arg.mjs
CHANGED
|
@@ -60,15 +60,18 @@
|
|
|
60
60
|
// the scripts named here, for the roster — the scripts this header names
|
|
61
61
|
// exemplify a way of qualifying, and were never the whole of it.
|
|
62
62
|
//
|
|
63
|
-
// fleet-tick.mjs
|
|
64
|
-
// deliberately:
|
|
65
|
-
// unknown-flag,
|
|
66
|
-
// its own terms.
|
|
67
|
-
//
|
|
68
|
-
//
|
|
69
|
-
//
|
|
70
|
-
//
|
|
71
|
-
//
|
|
63
|
+
// fleet-tick.mjs and fleet-heartbeat.mjs sit outside arg()/has(), and
|
|
64
|
+
// deliberately: each parses its flags with node:util's parseArgs, so its
|
|
65
|
+
// unknown-flag, missing-value and range refusals are a separate edit site on
|
|
66
|
+
// its own terms. They are not the only scripts outside — every script that
|
|
67
|
+
// binds none of makeArg, makeHas or defineFlags is — but the rest either
|
|
68
|
+
// hand-roll their own argv reader or take no flags at all; these two are the
|
|
69
|
+
// ones parsing with node:util's parseArgs. Their integer guards are no longer
|
|
70
|
+
// among those refusals — the digits grammar has its own predicate (isDigits()
|
|
71
|
+
// below) precisely because isFlagLike() cannot express it, and each script's
|
|
72
|
+
// int() calls that rather than hand-writing the grammar. What stays each
|
|
73
|
+
// script's own there is the trim() its input needs and the wording of its
|
|
74
|
+
// refusal, not the rule.
|
|
72
75
|
//
|
|
73
76
|
// candidates.mjs qualifies the other way, which the reach test cannot express:
|
|
74
77
|
// it binds makeArg/makeHas, so arg()'s refusals DO reach it — `node
|