Skip to content

Commit 8ad268b

Browse files
committed
cli: rename --amount to --amt in static
loop static in --amt loop static withdraw --amt This is done to make it consistent with other commands and products.
1 parent ab81ceb commit 8ad268b

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

cmd/loop/staticaddr.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ var withdrawalCommand = &cli.Command{
158158
"the transaction",
159159
},
160160
&cli.Uint64Flag{
161-
Name: "amount",
161+
Name: "amt",
162162
Usage: "the number of satoshis that should be " +
163163
"withdrawn from the selected deposits. The " +
164164
"change is sent back to the static address",
@@ -211,7 +211,7 @@ func withdraw(ctx context.Context, cmd *cli.Command) error {
211211
All: isAllSelected,
212212
DestAddr: destAddr,
213213
SatPerVbyte: int64(cmd.Uint64("sat_per_vbyte")),
214-
Amount: int64(cmd.Uint64("amount")),
214+
Amount: int64(cmd.Uint64("amt")),
215215
})
216216
if err != nil {
217217
return err
@@ -473,7 +473,7 @@ var staticAddressLoopInCommand = &cli.Command{
473473
"parameters after the payment timed out.",
474474
},
475475
&cli.Uint64Flag{
476-
Name: "amount",
476+
Name: "amt",
477477
Usage: "the number of satoshis that should be " +
478478
"swapped from the selected deposits. If there" +
479479
"is change it is sent back to the static " +
@@ -514,7 +514,7 @@ func staticAddressLoopIn(ctx context.Context, cmd *cli.Command) error {
514514
"allowed")
515515

516516
default:
517-
selectedAmount = int64(cmd.Uint64("amount"))
517+
selectedAmount = int64(cmd.Uint64("amt"))
518518
}
519519

520520
client, cleanup, err := getClient(ctx, cmd)

docs/loop.1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ Withdraw from static address deposits.
503503
\fB--all\fP: withdraws all static address deposits.
504504

505505
.PP
506-
\fB--amount\fP="": the number of satoshis that should be withdrawn from the selected deposits. The change is sent back to the static address (default: 0)
506+
\fB--amt\fP="": the number of satoshis that should be withdrawn from the selected deposits. The change is sent back to the static address (default: 0)
507507

508508
.PP
509509
\fB--dest_addr\fP="": the optional address that the withdrawn funds should be sent to, if let blank the funds will go to lnd's wallet
@@ -532,7 +532,7 @@ Loop in funds from static address deposits.
532532
\fB--all\fP: loop in all static address deposits.
533533

534534
.PP
535-
\fB--amount\fP="": the number of satoshis that should be swapped from the selected deposits. If thereis change it is sent back to the static address. (default: 0)
535+
\fB--amt\fP="": the number of satoshis that should be swapped from the selected deposits. If thereis change it is sent back to the static address. (default: 0)
536536

537537
.PP
538538
\fB--fast\fP: Usage: complete the swap faster by paying a higher fee, so the change output is available sooner

docs/loop.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ The following flags are supported:
591591
| `--all` | withdraws all static address deposits | bool | `false` |
592592
| `--dest_addr="…"` | the optional address that the withdrawn funds should be sent to, if let blank the funds will go to lnd's wallet | string |
593593
| `--sat_per_vbyte="…"` | (optional) a manual fee expressed in sat/vbyte that should be used when crafting the transaction | uint | `0` |
594-
| `--amount="…"` | the number of satoshis that should be withdrawn from the selected deposits. The change is sent back to the static address | uint | `0` |
594+
| `--amt="…"` | the number of satoshis that should be withdrawn from the selected deposits. The change is sent back to the static address | uint | `0` |
595595
| `--help` (`-h`) | show help | bool | `false` |
596596

597597
### `static summary` subcommand (aliases: `s`)
@@ -631,7 +631,7 @@ The following flags are supported:
631631
| `--utxo="…"` | specify the utxos of deposits as outpoints(tx:idx) that should be looped in | string | `[]` |
632632
| `--all` | loop in all static address deposits | bool | `false` |
633633
| `--payment_timeout="…"` | the maximum time in seconds that the server is allowed to take for the swap payment. The client can retry the swap with adjusted parameters after the payment timed out | duration | `0s` |
634-
| `--amount="…"` | the number of satoshis that should be swapped from the selected deposits. If thereis change it is sent back to the static address | uint | `0` |
634+
| `--amt="…"` | the number of satoshis that should be swapped from the selected deposits. If thereis change it is sent back to the static address | uint | `0` |
635635
| `--fast` | Usage: complete the swap faster by paying a higher fee, so the change output is available sooner | bool | `false` |
636636
| `--last_hop="…"` | the pubkey of the last hop to use for this swap | string |
637637
| `--label="…"` | an optional label for this swap,limited to 500 characters. The label may not start with our reserved prefix: [reserved] | string |

0 commit comments

Comments
 (0)