[PATCH v2] usertools/hugepages: show usage if no action specified

David Marchand david.marchand at redhat.com
Tue Nov 22 16:38:21 CET 2022


On Tue, Nov 22, 2022 at 4:33 PM Thomas Monjalon <thomas at monjalon.net> wrote:
>
> Previously, the script was doing nothing if no argument was provided.
>
> If neither show, mount/unmount, clear/reserve are specified,
> it is assumed that the user does not know how to use the script.
> So the usage and an error message are printed.
> The exit code will be non-zero.
> The user will understand something is wrong,
> and can recall the script with the option -h to get more information.
>
> Signed-off-by: Thomas Monjalon <thomas at monjalon.net>

Acked-by: David Marchand <david.marchand at redhat.com>


-- 
David Marchand



More information about the dev mailing list