-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid flags after payinvoice
's pay_req are being ignored
#9440
Comments
payinvoice
's pay_req are being ignored
The behavior you're describing for
You’ll notice that the As specified in the
and
it’s described that command If you'd like to work on a solution that detects non-existing option flags provided after the command arguments, you’re of course more than welcome to do so! :) |
payinvoice
's pay_req are being ignoredpayinvoice
's pay_req are being ignored
Oh I see, makes sense! |
@ViktorTigerstrom so the issue is in the I'll check the amount of work to port the current implementation to the v3 and post it here. |
Here it is: #9453 |
Awesome, thanks a lot @arturgontijo 🎉! I'm communicating internally within Lightning Labs to get your PR reviewed whenever possible. |
Background
Flags after
lncli payinvoice [command options] pay_req
are being ignored.Your environment
lnd
: lnd-darwin-arm64-v0.18.4-betauname -a
on *Nix): Darwin 24.2.0btcd
,bitcoind
, or other backend: [email protected]Steps to reproduce
These fail as expected:
But this doesn't:
Expected behaviour
Shouldn't we do the same check as we do for
sendpayment
here?I think we should output the same error for
payinvoice
, eg:If it makes sense, I can try to implement that check.
The text was updated successfully, but these errors were encountered: