Merge remote-tracking branch 'origin/master' into openssl-1.0
This commit is contained in:
commit
0413eb6fdf
4 changed files with 22 additions and 11 deletions
|
@ -67,7 +67,8 @@ impl<'a> Info<'a> {
|
|||
.invoke(&client)
|
||||
.map_err(|err| {
|
||||
print_error(err.context("failed to fetch file metadata, showing limited info"))
|
||||
}).ok();
|
||||
})
|
||||
.ok();
|
||||
|
||||
// Get the TTL duration
|
||||
let ttl_millis = info.ttl_millis() as i64;
|
||||
|
|
|
@ -41,7 +41,8 @@ impl<'a: 'b, 'b> Handler<'a> {
|
|||
The public Send service that is used as default host is provided by Mozilla.\n\
|
||||
This application is not affiliated with Mozilla, Firefox or Firefox Send.\
|
||||
",
|
||||
).global_setting(AppSettings::GlobalVersion)
|
||||
)
|
||||
.global_setting(AppSettings::GlobalVersion)
|
||||
.global_setting(AppSettings::VersionlessSubcommands)
|
||||
// TODO: enable below command when it doesn't break `p` anymore.
|
||||
// .global_setting(AppSettings::InferSubcommands)
|
||||
|
@ -51,28 +52,32 @@ impl<'a: 'b, 'b> Handler<'a> {
|
|||
.short("f")
|
||||
.global(true)
|
||||
.help("Force the action, ignore warnings"),
|
||||
).arg(
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("no-interact")
|
||||
.long("no-interact")
|
||||
.short("I")
|
||||
.alias("no-interactive")
|
||||
.global(true)
|
||||
.help("Not interactive, do not prompt"),
|
||||
).arg(
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("yes")
|
||||
.long("yes")
|
||||
.short("y")
|
||||
.alias("assume-yes")
|
||||
.global(true)
|
||||
.help("Assume yes for prompts"),
|
||||
).arg(
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("verbose")
|
||||
.long("verbose")
|
||||
.short("v")
|
||||
.multiple(true)
|
||||
.global(true)
|
||||
.help("Enable verbose information and logging"),
|
||||
).subcommand(CmdDebug::build())
|
||||
)
|
||||
.subcommand(CmdDebug::build())
|
||||
.subcommand(CmdDelete::build())
|
||||
.subcommand(CmdDownload::build().display_order(2))
|
||||
.subcommand(CmdExists::build())
|
||||
|
@ -95,7 +100,8 @@ impl<'a: 'b, 'b> Handler<'a> {
|
|||
.hide_default_value(true)
|
||||
.env("FFSEND_HISTORY")
|
||||
.hide_env_values(true),
|
||||
).arg(
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("incognito")
|
||||
.long("incognito")
|
||||
.short("i")
|
||||
|
@ -104,7 +110,8 @@ impl<'a: 'b, 'b> Handler<'a> {
|
|||
.alias("priv")
|
||||
.global(true)
|
||||
.help("Don't update local history for actions"),
|
||||
).subcommand(CmdHistory::build());
|
||||
)
|
||||
.subcommand(CmdHistory::build());
|
||||
|
||||
// Disable color usage if compiled without color support
|
||||
#[cfg(feature = "no-color")]
|
||||
|
|
|
@ -19,7 +19,8 @@ impl CmdUpload {
|
|||
.help("The file to upload")
|
||||
.required(true)
|
||||
.multiple(false),
|
||||
).arg(ArgPassword::build().help("Protect the file with a password"))
|
||||
)
|
||||
.arg(ArgPassword::build().help("Protect the file with a password"))
|
||||
.arg(ArgGenPassphrase::build())
|
||||
.arg(ArgDownloadLimit::build().default_value(DOWNLOAD_DEFAULT))
|
||||
.arg(ArgHost::build())
|
||||
|
@ -31,7 +32,8 @@ impl CmdUpload {
|
|||
.alias("f")
|
||||
.value_name("NAME")
|
||||
.help("Rename the file being uploaded"),
|
||||
).arg(
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("open")
|
||||
.long("open")
|
||||
.short("o")
|
||||
|
|
|
@ -55,7 +55,8 @@ pub fn print_error<E: Fail>(err: impl Borrow<E>) {
|
|||
} else {
|
||||
eprintln!("{} {}", highlight_error("caused by:"), err);
|
||||
}
|
||||
}).count();
|
||||
})
|
||||
.count();
|
||||
|
||||
// Fall back to a basic message
|
||||
if count == 0 {
|
||||
|
|
Loading…
Reference in a new issue