mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
accounts, litcli: address description for the command update and the space removal
This commit updates the account update command description and ArgsUsage for better clarity. Additionally, a formatting nit is fixed in the checkLabel error message to ensure no line starts with a space character.
This commit is contained in:
parent
d435ca7fe6
commit
afe032a50d
2 changed files with 5 additions and 5 deletions
|
|
@ -449,8 +449,8 @@ func checkLabel(label string) error {
|
|||
if len(label) == hex.EncodedLen(AccountIDLen) {
|
||||
_, err := hex.DecodeString(label)
|
||||
if err == nil {
|
||||
return fmt.Errorf("the label '%s'"+
|
||||
" is not allowed as it "+
|
||||
return fmt.Errorf("the label '%s' "+
|
||||
"is not allowed as it "+
|
||||
"can be mistaken for an account ID", label)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -146,10 +146,10 @@ var updateAccountCommand = cli.Command{
|
|||
Name: "update",
|
||||
ShortName: "u",
|
||||
Usage: "Update an existing off-chain account.",
|
||||
ArgsUsage: "[id | label] [new_balance] [new_expiration_date] " +
|
||||
"[--new_label=]",
|
||||
ArgsUsage: "[id | label] new_balance new_expiration_date",
|
||||
Description: "Updates an existing off-chain account and sets " +
|
||||
"a new balance, new expiration date or a new label.",
|
||||
"a new balance, new expiration date and " +
|
||||
"optionally a new label.",
|
||||
Flags: []cli.Flag{
|
||||
cli.StringFlag{
|
||||
Name: idName,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue