Skip to content

Commit e22b8c6

Browse files
committed
Merge branch 'fix/thewhaleking/no-prompts' into feat/thewhaleking/not-ugly-args
# Conflicts: # bittensor_cli/cli.py
2 parents 2d81d05 + e96a5c8 commit e22b8c6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

bittensor_cli/cli.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3972,18 +3972,18 @@ def stake_remove(
39723972
)
39733973
if not amount and not prompt:
39743974
print_error(
3975-
f"Using {arg__('--no-prompt')} without an amount/'all' is too ambiguous. "
3976-
f"You need to specify an {arg__('--amount')} or use "
3977-
f"{arg__('--unstake-all')}/{arg__('--unstake-all-alpha')}."
3975+
f"Ambiguous request! Specify [{COLORS.G.ARG}]--amount[/{COLORS.G.ARG}], "
3976+
f"[{COLORS.G.ARG}]--all[/{COLORS.G.ARG}], "
3977+
f"or [{COLORS.G.ARG}]--all-alpha[/{COLORS.G.ARG}] to use [{COLORS.G.ARG}]--no-prompt[/{COLORS.G.ARG}]"
39783978
)
39793979
return False
39803980

39813981
if not amount and json_output:
39823982
json_console.print_json(
39833983
data={
39843984
"success": False,
3985-
"err_msg": "Using '--json-output' without an amount/'all' is too ambiguous. You need to specify an "
3986-
"'--amount' or use '--unstake-all'/'--unstake-all-alpha'",
3985+
"err_msg": "Ambiguous request! Specify '--amount', '--all', "
3986+
"or '--all-alpha' to use '--json-output'",
39873987
}
39883988
)
39893989
return False

0 commit comments

Comments
 (0)