mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-23 14:40:30 +01:00
Merge pull request #2746 from joostjager/sendpayment-arg
lncli: fix command line argument parsing for sendpayment
This commit is contained in:
commit
9d443a9e12
1 changed files with 1 additions and 0 deletions
|
@ -2121,6 +2121,7 @@ func sendPayment(ctx *cli.Context) error {
|
|||
rHash, err = hex.DecodeString(ctx.String("payment_hash"))
|
||||
case args.Present():
|
||||
rHash, err = hex.DecodeString(args.First())
|
||||
args = args.Tail()
|
||||
default:
|
||||
return fmt.Errorf("payment hash argument missing")
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue