[PATCH v2] usertools/hugepages: show usage if no action specified
Thomas Monjalon
thomas at monjalon.net
Tue Nov 22 16:42:53 CET 2022
22/11/2022 16:38, David Marchand:
> 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>
Applied
More information about the dev
mailing list