Skip to content

Commit

Permalink
nvm i amm just dumb
Browse files Browse the repository at this point in the history
  • Loading branch information
at2005 committed Oct 1, 2024
1 parent c2b9af5 commit b2ff739
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/lib/buy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ interface SfBuyOptions {
start?: string;
yes?: boolean;
quote?: boolean;
colo?: Array<string>;
colocate_with?: Array<string>;
}

export function registerBuy(program: Command) {
Expand All @@ -55,7 +55,7 @@ export function registerBuy(program: Command) {
.option("-s, --start <start>", "Specify the start date")
.option("-y, --yes", "Automatically confirm the order")
.option(
"-c, --colo <contracts_to_colocate_with>",
"-colo, --colocate_with <contracts_to_colocate_with>",
"Colocate with existing contracts",
(value) => value.split(","),
[],
Expand All @@ -80,7 +80,9 @@ async function buyOrderAction(options: SfBuyOptions) {
return logAndQuit(`Invalid duration: ${options.duration}`);
}

const colocateWithContractIds = options.colo ? options.colo : [];
const colocateWithContractIds = options.colocate_with
? options.colocate_with
: [];

// default to 1 node if not specified
const accelerators = options.accelerators ? Number(options.accelerators) : 1;
Expand Down

0 comments on commit b2ff739

Please sign in to comment.