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:
Jonathan Lebon 2019-10-01 12:00:46 -04:00 committed by OpenShift Merge Robot
parent 677c3c8b29
commit ea28cf95c5

View File

@ -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;