Skip to content

Commit

Permalink
switch comment args to default false for uniffi
Browse files Browse the repository at this point in the history
  • Loading branch information
Mydayyy committed Jul 26, 2024
1 parent b694ceb commit ff1dfca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/opts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,15 @@ pub struct Opts {
#[clap(help("enable discussion for new paste"))]
pub discussion: bool,

#[cfg_attr(feature = "uniffi", uniffi(default = false))]
#[clap(long, requires("url"))]
#[clap(help("make new comment on existing paste"))]
pub comment: bool,
#[cfg_attr(feature = "uniffi", uniffi(default = None))]
#[clap(long, requires("comment"), value_name = "nickname")]
#[clap(help("use this nick for comment"))]
pub comment_as: Option<String>,
#[cfg_attr(feature = "uniffi", uniffi(default = None))]
#[clap(long, requires("comment"), value_name = "parentid")]
#[clap(help("reply to this parent comment"))]
pub comment_to: Option<String>,
Expand Down

0 comments on commit ff1dfca

Please sign in to comment.