memblock tests: add command line help option
authorRebecca Mckeever <remckee0@gmail.com>
Sun, 14 Aug 2022 05:50:19 +0000 (00:50 -0500)
committerMike Rapoport <rppt@linux.ibm.com>
Tue, 30 Aug 2022 10:11:14 +0000 (13:11 +0300)
commitc0f1bc4e91c52be73ae1a5e6fd53371f5a7f0333
tree3d91fb5c659cc4f1f9278974cd3100756ce5df1b
parentb90cb1053190353cc30f0fef0ef1f378ccc063c5
memblock tests: add command line help option

Add a help command line option to the help message. Add the help option
to the short and long options so it will be recognized as a valid
option.

Usage:
    $ ./main -h

    Or:
    $ ./main --help

Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Rebecca Mckeever <remckee0@gmail.com>
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Link: https://lore.kernel.org/r/0f3b93a79de78c0da1ca90f74fe35e9a85c7cf93.1660451025.git.remckee0@gmail.com
tools/testing/memblock/tests/common.c