Skip to content

Commit 8274848

Browse files
committed
Revert aliases in Options.
1 parent 302a331 commit 8274848

File tree

1 file changed

+4
-31
lines changed

1 file changed

+4
-31
lines changed

bittensor_cli/cli.py

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -169,29 +169,15 @@ def edit_help(cls, option_name: str, help_text: str):
169169
help="Path to a JSON file containing the encrypted key backup. For example, a JSON file from PolkadotJS.",
170170
)
171171
json_password = typer.Option(
172-
None,
173-
"--json-password",
174-
"--json_password",
175-
help="Password to decrypt the JSON file.",
172+
None, "--json-password", help="Password to decrypt the JSON file."
176173
)
177174
use_password = typer.Option(
178175
True,
179-
"--use-password",
180-
"--use_password",
181176
help="Set this to `True` to protect the generated Bittensor key with a password.",
182177
)
183-
public_hex_key = typer.Option(
184-
None,
185-
"--public-hex-key",
186-
"--public_hex_key",
187-
help="The public key in hex format.",
188-
)
178+
public_hex_key = typer.Option(None, help="The public key in hex format.")
189179
ss58_address = typer.Option(
190-
None,
191-
"--ss58",
192-
"--ss58-address",
193-
"--ss58_address",
194-
help="The SS58 address of the coldkey.",
180+
None, "--ss58", "--ss58-address", help="The SS58 address of the coldkey."
195181
)
196182
overwrite = typer.Option(
197183
False,
@@ -222,14 +208,11 @@ def edit_help(cls, option_name: str, help_text: str):
222208
)
223209
netuid_not_req = typer.Option(
224210
None,
225-
"--netuid",
226211
help="The netuid of the subnet in the network, (e.g. 1).",
227212
prompt=False,
228213
)
229214
all_netuids = typer.Option(
230215
False,
231-
"--all-netuids/--not-all-netuids",
232-
"--all_netuids/--not_all_netuids",
233216
help="Use all netuids",
234217
prompt=False,
235218
)
@@ -242,7 +225,6 @@ def edit_help(cls, option_name: str, help_text: str):
242225
reuse_last = typer.Option(
243226
False,
244227
"--reuse-last",
245-
"--reuse_last",
246228
help="Reuse the metagraph data you last retrieved."
247229
"Use this option only if you have already retrieved the metagraph."
248230
"data",
@@ -253,15 +235,10 @@ def edit_help(cls, option_name: str, help_text: str):
253235
help="Display the table as HTML in the browser.",
254236
)
255237
wait_for_inclusion = typer.Option(
256-
True,
257-
"--wait-for-inclusion",
258-
"--wait_for_inclusion",
259-
help="If `True`, waits until the transaction is included in a block.",
238+
True, help="If `True`, waits until the transaction is included in a block."
260239
)
261240
wait_for_finalization = typer.Option(
262241
True,
263-
"--wait-for-finalization",
264-
"--wait_for_finalization",
265242
help="If `True`, waits until the transaction is finalized on the blockchain.",
266243
)
267244
prompt = typer.Option(
@@ -299,15 +276,13 @@ def edit_help(cls, option_name: str, help_text: str):
299276
"--slippage-tolerance",
300277
"--tolerance",
301278
"--rate-tolerance",
302-
"--rate_tolerance",
303279
help="Set the rate tolerance percentage for transactions (default: 0.05 for 5%).",
304280
callback=validate_rate_tolerance,
305281
)
306282
safe_staking = typer.Option(
307283
None,
308284
"--safe-staking/--no-safe-staking",
309285
"--safe/--unsafe",
310-
"--safe_staking/--no_safe_staking",
311286
show_default=False,
312287
help="Enable or disable safe staking mode [dim](default: enabled)[/dim].",
313288
)
@@ -317,7 +292,6 @@ def edit_help(cls, option_name: str, help_text: str):
317292
"--partial/--no-partial",
318293
"--allow/--not-allow",
319294
"--allow-partial/--not-partial",
320-
"--allow_partial_stake/--no_allow_partial_stake",
321295
show_default=False,
322296
help="Enable or disable partial stake mode [dim](default: disabled)[/dim].",
323297
)
@@ -334,7 +308,6 @@ def edit_help(cls, option_name: str, help_text: str):
334308
False,
335309
"--json-output",
336310
"--json-out",
337-
"--json_output",
338311
help="Outputs the result of the command as JSON.",
339312
)
340313
period: int = typer.Option(

0 commit comments

Comments
 (0)