app/reset: Fix argc range check
Otherwise, e.g. `rpm-ostree reset foobar` doesn't actually error out. Some users have hit this as a typo for `rpm-ostree override reset foobar`.
This commit is contained in:
parent
677c3c8b29
commit
ea28cf95c5
@ -72,7 +72,7 @@ rpmostree_builtin_reset (int argc,
|
||||
error))
|
||||
return FALSE;
|
||||
|
||||
if (argc < 1 || argc > 2)
|
||||
if (argc != 1)
|
||||
{
|
||||
rpmostree_usage_error (context, "Too few or too many arguments", error);
|
||||
return FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user