You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/lib/buy/index.tsx
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ export function _registerBuy(program: Command) {
47
47
.showHelpAfterError()
48
48
.option(
49
49
"-t, --type <type>",
50
-
"Type of GPU",
50
+
"[Required: --type or --zone or --colocate] Type of GPU",
51
51
)
52
52
.option(
53
53
"-n, --accelerators <quantity>",
@@ -57,7 +57,7 @@ export function _registerBuy(program: Command) {
57
57
)
58
58
.option(
59
59
"-d, --duration <duration>",
60
-
"Duration of reservation (rounded up to the nearest hour)",
60
+
"[Required: --duration or --end] Duration of reservation (rounded up to the nearest hour)",
61
61
parseDuration,
62
62
)
63
63
.option(
@@ -73,7 +73,7 @@ export function _registerBuy(program: Command) {
73
73
.addOption(
74
74
newOption(
75
75
"-e, --end <end>",
76
-
"End time (date or relative time like '+1d', rounded up to nearest hour)",
76
+
"[Required: --duration or --end] End time (date or relative time like '+1d', rounded up to nearest hour)",
77
77
)
78
78
.argParser(parseEnd)
79
79
.conflicts("duration"),
@@ -91,7 +91,7 @@ export function _registerBuy(program: Command) {
91
91
.option("-y, --yes","Automatically confirm the order")
92
92
.option(
93
93
"-colo, --colocate <contract_id>",
94
-
"Colocate with existing contracts. If provided, `-t`/`--type` will be ignored.",
94
+
"[Required: --type or --zone or --colocate] Colocate with existing contracts. If provided, `-t`/`--type` will be ignored.",
95
95
)
96
96
.option(
97
97
"-q, --quote",
@@ -103,11 +103,11 @@ export function _registerBuy(program: Command) {
103
103
)
104
104
.option(
105
105
"-z, --zone <zone>",
106
-
"Send into a specific zone. If provided, \`-t\`/`--type` will be ignored.",
106
+
"[Required: --type or --zone or --colocate] Send into a specific zone. If provided, \`-t\`/`--type` will be ignored.",
107
107
)
108
108
.option(
109
109
"-c, --cluster <cluster>",
110
-
"Send into a specific cluster (deprecated, alias for --zone). If provided, \`-t\`/`--type` will be ignored.",
110
+
"[Required: --type or --zone or --colocate] Send into a specific cluster (deprecated, alias for --zone). If provided, \`-t\`/`--type` will be ignored.",
.argument("<procurement_id...>","ID of the procurement to update")
359
359
.option(
360
360
"-n, --accelerators <accelerators>",
361
-
"Desired number of GPUs (0 to turn off)",
361
+
"[Required: at least one of --accelerators, --horizon, or --price] Desired number of GPUs (0 to turn off)",
362
362
parseAccelerators,
363
363
)
364
364
.option(
365
365
"-d, --horizon <horizon>",
366
-
"The minimum amount of time to reserve the GPUs for. That is, start buying more compute if the remaining time is less than this threshold.",
366
+
"[Required: at least one of --accelerators, --horizon, or --price] The minimum amount of time to reserve the GPUs for. That is, start buying more compute if the remaining time is less than this threshold.",
367
367
parseHorizonArg,
368
368
)
369
369
.option(
370
370
"-p, --price <price>",
371
-
"Limit price per GPU per hour, in dollars. Buy compute only if it's at most this price. Defaults to the current market price times 1.5, or $2.65 if we can't get a price estimate.",
371
+
"[Required: at least one of --accelerators, --horizon, or --price] Limit price per GPU per hour, in dollars. Buy compute only if it's at most this price. Defaults to the current market price times 1.5, or $2.65 if we can't get a price estimate.",
372
372
parsePriceArg,
373
373
)
374
374
.option("-y, --yes","Automatically confirm the command.")
0 commit comments