Document cli args

This commit is contained in:
Edward Shen 2021-10-27 02:23:37 -07:00
parent 372a160558
commit 06a9522514
Signed by: edward
GPG key ID: 19182661E818369F

View file

@ -22,11 +22,15 @@ struct Opts {
#[derive(Parser)] #[derive(Parser)]
enum Action { enum Action {
Upload { Upload {
/// The OmegaUpload instance to upload data to.
url: Url, url: Url,
/// Encrypt the uploaded paste with the provided password, preventing
/// public access.
#[clap(short, long)] #[clap(short, long)]
password: Option<SecretString>, password: Option<SecretString>,
}, },
Download { Download {
/// The paste to download.
url: ParsedUrl, url: ParsedUrl,
}, },
} }