@@ -67,7 +67,9 @@ nodeRunParser = do
6767 shelleyVRFFile <- optional parseVrfKeyFilePath
6868 shelleyCertFile <- optional parseOperationalCertFilePath
6969 shelleyBulkCredsFile <- optional parseBulkCredsFilePath
70- startAsNonProducingNode <- Last <$> parseStartAsNonProducingNode
70+ startAsNonProducingNode <- (\ depr new -> Last depr <> Last new)
71+ <$> parseStartAsNonProducingNodeDeprecated
72+ <*> parseStartAsNonProducingNode
7173
7274 -- Node Address
7375 nIPv4Address <- lastOption parseHostIPv4Addr
@@ -394,19 +396,31 @@ parseVrfKeyFilePath =
394396 <> completer (bashCompleter " file" )
395397 )
396398
399+ parseStartAsNonProducingNodeDeprecated :: Parser (Maybe Bool )
400+ parseStartAsNonProducingNodeDeprecated =
401+ flag Nothing (Just True ) $ mconcat
402+ [ long " non-producing-node"
403+ , help $ mconcat
404+ [ " DEPRECATED, use --start-as-non-producing-node instead. "
405+ , " This option will be removed in one of the future versions of cardano-node."
406+ ]
407+ , hidden
408+ ]
409+
397410-- | A parser which returns `Nothing` or `Just True`; the default value is set
398411-- in `defaultPartialNodeConfiguration`. This allows to set this option either
399412-- in the configuration file or as command line flag.
400413parseStartAsNonProducingNode :: Parser (Maybe Bool )
401414parseStartAsNonProducingNode =
402415 flag Nothing (Just True ) $ mconcat
403- [ long " non-producing-node"
416+ [ long " start-as- non-producing-node"
404417 , help $ mconcat
405418 [ " Start the node as a non block producing node even if "
406419 , " credentials are specified."
407420 ]
408421 ]
409422
423+
410424-- | Produce just the brief help header for a given CLI option parser,
411425-- without the options.
412426parserHelpHeader :: String -> Opt. Parser a -> OptI. Doc
0 commit comments