mirror of
https://github.com/lndk-org/lndk.git
synced 2026-08-13 12:33:05 +02:00
Merge pull request #244 from benthecarman/positial-args
refactor: require named arguments for CreateOffer CLI options
This commit is contained in:
commit
406b2a08f9
1 changed files with 5 additions and 5 deletions
10
src/cli.rs
10
src/cli.rs
|
|
@ -184,20 +184,20 @@ enum Commands {
|
|||
/// CreateOffer creates a BOLT 12 offer.
|
||||
CreateOffer {
|
||||
/// The amount of the offer in millisatoshis.
|
||||
#[arg(required = false)]
|
||||
#[arg(long, required = false)]
|
||||
amount: Option<u64>,
|
||||
/// The description of the offer.
|
||||
#[arg(required = false)]
|
||||
#[arg(long, required = false)]
|
||||
description: Option<String>,
|
||||
/// The issuer of the offer.
|
||||
#[arg(required = false)]
|
||||
#[arg(long, required = false)]
|
||||
issuer: Option<String>,
|
||||
/// Relative expiry of the offer in seconds.
|
||||
#[arg(required = false)]
|
||||
#[arg(long, required = false)]
|
||||
expiry: Option<u64>,
|
||||
/// The quantity of the offer. If 0, unbounded quantity is assumed. If None,
|
||||
/// quantity defaults to 1.
|
||||
#[arg(required = false)]
|
||||
#[arg(long, required = false)]
|
||||
quantity: Option<u64>,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue