Drop duplicit check on --refresh option.

This commit is contained in:
Ondrej Kozina
2020-04-21 13:19:38 +02:00
committed by Milan Broz
parent c567d852a5
commit 6f45c7a8ac

View File

@@ -3702,11 +3702,6 @@ int main(int argc, const char **argv)
/* FIXME: rewrite this from scratch */ /* FIXME: rewrite this from scratch */
if (opt_refresh && strcmp(aname, "open"))
usage(popt_context, EXIT_FAILURE,
_("Parameter --refresh is only allowed with open or refresh commands."),
poptGetInvocationName(popt_context));
if (opt_refresh && opt_test_passphrase) if (opt_refresh && opt_test_passphrase)
usage(popt_context, EXIT_FAILURE, usage(popt_context, EXIT_FAILURE,
_("Options --refresh and --test-passphrase are mutually exclusive."), _("Options --refresh and --test-passphrase are mutually exclusive."),