On Fri, May 26, 2023 at 1:38 PM Olaf Hering <[email protected]> wrote:

> Invoking the --help option of any tool should not return with an error,
> if that tool does have a documented and implemented help option.
>
> Adjust the usage() function to exit with either error or success.
> Handle the existing entry in the option table to call usage accordingly.
>
> Adjust the getopt value for help. The char '?' is returned for unknown
> options. Returning 'h' instead of '?' allows to handle --help.
>
> Signed-off-by: Olaf Hering <[email protected]>
>

Reviewed-by: George Dunlap <[email protected]>

Reply via email to