Skip to content

Commit

Permalink
create-testnet-data, create-staked: make relation between --supply an…
Browse files Browse the repository at this point in the history
…d --supply-delegated explicit in --help
  • Loading branch information
smelc committed Jan 18, 2024
1 parent 5073187 commit 4bf00c7
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions cardano-cli/src/Cardano/CLI/EraBased/Options/Genesis.hs
Original file line number Diff line number Diff line change
Expand Up @@ -275,15 +275,19 @@ pGenesisCreateTestNetData envCli =
Opt.optional $ fmap Lovelace $ Opt.option Opt.auto $ mconcat
[ Opt.long "supply"
, Opt.metavar "LOVELACE"
, Opt.help "The initial coin supply in Lovelace which will be evenly distributed across initial, non-delegating stake holders. Defaults to 1 million Ada (i.e. 10^12 Lovelace)."
, Opt.help $ unlines [ "The initial coin supply in Lovelace which will be evenly distributed across initial, non-delegating stake holders. Defaults to 1 million Ada (i.e. 10^12 Lovelace)."
, " The total supply is this amount plus the amount specified with --supply-delegated."
]
, Opt.value 1000000000000
]
pSupplyDelegated :: Parser (Maybe Lovelace)
pSupplyDelegated =
Opt.optional $ fmap Lovelace $ Opt.option Opt.auto $ mconcat
[ Opt.long "supply-delegated"
, Opt.metavar "LOVELACE"
, Opt.help "The initial coin supply in Lovelace which will be evenly distributed across initial, delegating stake holders. Defaults to 1 million Ada (i.e. 10^12 Lovelace)."
, Opt.help $ unlines [ "The initial coin supply in Lovelace which will be evenly distributed across initial, delegating stake holders. Defaults to 1 million Ada (i.e. 10^12 Lovelace)."
, " The total supply is this amount plus the amount specified with --supply."
]
, Opt.value 1000000000000
]
pOutputDir = Opt.strOption $ mconcat
Expand Down Expand Up @@ -374,15 +378,19 @@ pInitialSupplyNonDelegated =
Opt.optional $ fmap Lovelace $ Opt.option Opt.auto $ mconcat
[ Opt.long "supply"
, Opt.metavar "LOVELACE"
, Opt.help "The initial coin supply in Lovelace which will be evenly distributed across initial, non-delegating stake holders."
, Opt.help $ unlines [ "The initial coin supply in Lovelace which will be evenly distributed across initial, non-delegating stake holders. Defaults to 1 million Ada (i.e. 10^12 Lovelace)."
, " The total supply is this amount plus the amount specified with --supply-delegated."
]
]

pInitialSupplyDelegated :: Parser Lovelace
pInitialSupplyDelegated =
fmap (Lovelace . fromMaybe 0) $ Opt.optional $ Opt.option Opt.auto $ mconcat
[ Opt.long "supply-delegated"
, Opt.metavar "LOVELACE"
, Opt.help "The initial coin supply in Lovelace which will be evenly distributed across initial, delegating stake holders."
, Opt.help $ unlines [ "The initial coin supply in Lovelace which will be evenly distributed across initial, delegating stake holders. Defaults to 1 million Ada (i.e. 10^12 Lovelace)."
, " The total supply is this amount plus the amount specified with --supply."
]
, Opt.value 0
]

Expand Down

0 comments on commit 4bf00c7

Please sign in to comment.