Fix clap 3.0.0-beta.5 renaming

This commit is contained in:
Edward Shen 2021-10-26 22:30:37 -07:00
parent 9bb265670e
commit 0d5f9f3288
Signed by: edward
GPG key ID: 19182661E818369F

View file

@ -5,7 +5,7 @@ use std::io::{Read, Write};
use anyhow::{anyhow, bail, Context, Result};
use atty::Stream;
use clap::Clap;
use clap::Parser;
use omegaupload_common::crypto::{gen_key_nonce, open_in_place, seal_in_place, Key};
use omegaupload_common::{base64, hash, Expiration, ParsedUrl, Url};
use reqwest::blocking::Client;
@ -13,13 +13,13 @@ use reqwest::header::EXPIRES;
use reqwest::StatusCode;
use secrecy::{ExposeSecret, SecretString};
#[derive(Clap)]
#[derive(Parser)]
struct Opts {
#[clap(subcommand)]
action: Action,
}
#[derive(Clap)]
#[derive(Parser)]
enum Action {
Upload {
url: Url,