@@ -62,7 +62,9 @@ nodeRunParser = do
6262 shelleyVRFFile <- optional parseVrfKeyFilePath
6363 shelleyCertFile <- optional parseOperationalCertFilePath
6464 shelleyBulkCredsFile <- optional parseBulkCredsFilePath
65- startAsNonProducingNode <- Last <$> parseStartAsNonProducingNode
65+ startAsNonProducingNode <- (\ depr new -> Last depr <> Last new)
66+ <$> parseStartAsNonProducingNodeDeprecated
67+ <*> parseStartAsNonProducingNode
6668
6769 -- Node Address
6870 nIPv4Address <- lastOption parseHostIPv4Addr
@@ -359,19 +361,31 @@ parseVrfKeyFilePath =
359361 <> completer (bashCompleter " file" )
360362 )
361363
364+ parseStartAsNonProducingNodeDeprecated :: Parser (Maybe Bool )
365+ parseStartAsNonProducingNodeDeprecated =
366+ flag Nothing (Just True ) $ mconcat
367+ [ long " non-producing-node"
368+ , help $ mconcat
369+ [ " DEPRECATED, use --start-as-non-producing-node instead. "
370+ , " This option will be removed in one of the future versions of cardano-node."
371+ ]
372+ , hidden
373+ ]
374+
362375-- | A parser which returns `Nothing` or `Just True`; the default value is set
363376-- in `defaultPartialNodeConfiguration`. This allows to set this option either
364377-- in the configuration file or as command line flag.
365378parseStartAsNonProducingNode :: Parser (Maybe Bool )
366379parseStartAsNonProducingNode =
367380 flag Nothing (Just True ) $ mconcat
368- [ long " non-producing-node"
381+ [ long " start-as- non-producing-node"
369382 , help $ mconcat
370383 [ " Start the node as a non block producing node even if "
371384 , " credentials are specified."
372385 ]
373386 ]
374387
388+
375389-- | Produce just the brief help header for a given CLI option parser,
376390-- without the options.
377391parserHelpHeader :: String -> Opt. Parser a -> OptI. Doc
0 commit comments