Skip to content

Commit

Permalink
fix(cli): fix vk commands flags
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlc03 committed Jun 21, 2024
1 parent 1037f78 commit 4181974
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions cli/ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,12 @@ program
program
.command("checkVerifyingKeys")
.description("check that the verifying keys in the contract match the local ones")
.option("-uq, --use-quadratic-voting", "whether to use quadratic voting", (value) => value === "true", true)
.option(
"-uq, --use-quadratic-voting <useQuadraticVoting>",
"whether to use quadratic voting",
(value) => value === "true",
true,
)
.option("-q, --quiet <quiet>", "whether to print values to the console", (value) => value === "true", false)
.option("-r, --rpc-provider <provider>", "the rpc provider URL")
.option("-vk, --vk-contract <vkContract>", "the VkRegistry contract address")
Expand Down Expand Up @@ -228,7 +233,12 @@ program
"-tnqv, --tally-votes-zkey-non-qv <tallyVotesZkeyPathNonQv>",
"the tally votes non-qv zkey path (see different options for zkey files to use specific circuits https://maci.pse.dev/docs/trusted-setup, https://maci.pse.dev/docs/testing/#pre-compiled-artifacts-for-testing)",
)
.option("-uq, --use-quadratic-voting", "whether to use quadratic voting", (value) => value === "true", true)
.option(
"-uq, --use-quadratic-voting <useQuadraticVoting>",
"whether to use quadratic voting",
(value) => value === "true",
true,
)
.option("-k, --vk-registry <vkRegistry>", "the vk registry contract address")
.option("-q, --quiet <quiet>", "whether to print values to the console", (value) => value === "true", false)
.option("-r, --rpc-provider <provider>", "the rpc provider URL")
Expand Down

0 comments on commit 4181974

Please sign in to comment.