[PATCH] debugedit: fix exit status in case of wrong number of arguments

Mark Wielaard mark@klomp.org
Tue Mar 23 13:56:56 GMT 2021


Hi Dmitry,

On Mon, 2021-03-22 at 20:00 +0000, Dmitry V. Levin wrote:
> Print error diagnostics to stderr and exit with status EXIT_FAILURE
> when the number of arguments is not equal to 1.
> 
> * tools/debugedit.c (usage): Add "error" argument, print usageText
> to stderr and exit with status EXIT_FAILURE if error is set to true.
> All callers updated.
> * tests/debugedit.at: Check debugedit usage.
> 
> Fixes: 5200953d5a65 ("Initial build system. Remove rpm and popt
> dependencies.")
> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>

Looks good, this makes usage similar to help.
And thanks for the new testcase.

Pushed to main.

Mark


More information about the Debugedit mailing list