15 lines
302 B
Rust
15 lines
302 B
Rust
use std::ffi::OsString;
|
|
|
|
use clap::Parser;
|
|
|
|
#[derive(Debug, Parser)]
|
|
#[clap(author, version, about)]
|
|
pub struct Cli {
|
|
/// File to pre-select for sending.
|
|
#[clap(long, short)]
|
|
pub file: Option<OsString>,
|
|
|
|
/// Text string to send.
|
|
#[clap(long, short)]
|
|
pub text: Option<String>,
|
|
}
|