@@ -51,8 +51,10 @@ nodeRunParser = do
51
51
-- Filepaths
52
52
topFp <- lastOption parseTopologyFile
53
53
dbFp <- lastOption parseDbPath
54
+ validate <- lastOption parseValidateDB
54
55
socketFp <- lastOption $ parseSocketPath " Path to a cardano-node socket"
55
56
traceForwardSocket <- lastOption parseTracerSocketMode
57
+ nodeConfigFp <- lastOption parseConfigFile
56
58
57
59
-- Protocol files
58
60
byronCertFile <- optional parseByronDelegationCert
@@ -68,15 +70,13 @@ nodeRunParser = do
68
70
nIPv6Address <- lastOption parseHostIPv6Addr
69
71
nPortNumber <- lastOption parsePort
70
72
71
- -- NodeConfiguration filepath
72
- nodeConfigFp <- lastOption parseConfigFile
73
- numOfDiskSnapshots <- lastOption parseNumOfDiskSnapshots
74
- snapshotInterval <- lastOption parseSnapshotInterval
75
-
76
- validate <- lastOption parseValidateDB
73
+ -- Shutdown
77
74
shutdownIPC <- lastOption parseShutdownIPC
78
75
shutdownOnLimit <- lastOption parseShutdownOn
79
76
77
+ -- Hidden options (to be removed eventually)
78
+ numOfDiskSnapshots <- lastOption parseNumOfDiskSnapshots
79
+ snapshotInterval <- lastOption parseSnapshotInterval
80
80
maybeMempoolCapacityOverride <- lastOption parseMempoolCapacityOverride
81
81
82
82
pure $ PartialNodeConfiguration
@@ -215,13 +215,13 @@ parseMempoolCapacityOverride = parseOverride <|> parseNoOverride
215
215
Opt. option (auto @ Word32 )
216
216
( long " mempool-capacity-override"
217
217
<> metavar " BYTES"
218
- <> help " The number of bytes"
218
+ <> help " [DEPRECATED: Set it in config file with key MempoolCapacityBytesOverride] The number of bytes"
219
219
)
220
220
parseNoOverride :: Parser MempoolCapacityBytesOverride
221
221
parseNoOverride =
222
222
flag' NoMempoolCapacityBytesOverride
223
223
( long " no-mempool-capacity-override"
224
- <> help " The port number "
224
+ <> help " [DEPRECATED: Set it in config file] Don't override mempool capacity "
225
225
)
226
226
227
227
parseDbPath :: Parser FilePath
@@ -336,7 +336,7 @@ parseNumOfDiskSnapshots = fmap RequestedNumOfDiskSnapshots parseNum
336
336
parseNum = Opt. option auto
337
337
( long " num-of-disk-snapshots"
338
338
<> metavar " NUMOFDISKSNAPSHOTS"
339
- <> help " Number of ledger snapshots stored on disk."
339
+ <> help " [DEPRECATED: Set it in config file with key NumOfDiskSnapshots] Number of ledger snapshots stored on disk."
340
340
)
341
341
342
342
-- TODO revisit because it sucks
@@ -346,7 +346,7 @@ parseSnapshotInterval = fmap (RequestedSnapshotInterval . secondsToDiffTime) par
346
346
parseDifftime = Opt. option auto
347
347
( long " snapshot-interval"
348
348
<> metavar " SNAPSHOTINTERVAL"
349
- <> help " Snapshot Interval (in seconds)"
349
+ <> help " [DEPRECATED: Set it in config file with key SnapshotInterval] Snapshot Interval (in seconds)"
350
350
)
351
351
352
352
-- | Produce just the brief help header for a given CLI option parser,
0 commit comments