Skip to content

Commit aa2bb1c

Browse files
authored
Add custom help category for RPC flags (#5200)
This should make all the RPC flags show up in their own section in --help now.
1 parent 8147d4f commit aa2bb1c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ironfish-cli/src/flags.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,43 +68,52 @@ export const DataDirFlag = Flags.string({
6868
export const RpcUseIpcFlag = Flags.boolean({
6969
default: DEFAULT_USE_RPC_IPC,
7070
description: 'Connect to the RPC over IPC (default)',
71+
helpGroup: 'RPC',
7172
})
7273

7374
export const RpcUseTcpFlag = Flags.boolean({
7475
default: DEFAULT_USE_RPC_TCP,
7576
description: 'Connect to the RPC over TCP',
77+
helpGroup: 'RPC',
7678
})
7779

7880
export const RpcTcpHostFlag = Flags.string({
7981
description: 'The TCP host to listen for connections on',
82+
helpGroup: 'RPC',
8083
})
8184

8285
export const RpcTcpPortFlag = Flags.integer({
8386
description: 'The TCP port to listen for connections on',
87+
helpGroup: 'RPC',
8488
})
8589

8690
export const RpcTcpTlsFlag = Flags.boolean({
8791
default: DEFAULT_USE_RPC_TLS,
8892
description: 'Encrypt TCP connection to the RPC over TLS',
8993
allowNo: true,
94+
helpGroup: 'RPC',
9095
})
9196

9297
export const RpcAuthFlag = Flags.string({
9398
description: 'The RPC auth token',
99+
helpGroup: 'RPC',
94100
})
95101

96102
export const RpcHttpHostFlag = Flags.string({
97103
description: 'The HTTP host to listen for connections on',
104+
helpGroup: 'RPC',
98105
})
99106

100107
export const RpcHttpPortFlag = Flags.integer({
101108
description: 'The HTTP port to listen for connections on',
109+
helpGroup: 'RPC',
102110
})
103111

104112
export const RpcUseHttpFlag = Flags.boolean({
105113
default: DEFAULT_USE_RPC_HTTP,
106114
description: 'Connect to the RPC over HTTP',
107115
allowNo: true,
116+
helpGroup: 'RPC',
108117
})
109118

110119
/**

0 commit comments

Comments
 (0)