The output for --help
is not really a menu, just a help message.
There are some coding rules, in particular the GNU coding standards specify something about --help
(and also --version
). I strongly suggest supporting both of them; as a user, I am pissed off by the few programs not understanding --help
.
And the GNU libc provides several ways for providing that --help
. I suggest looking into argp, but you could use getopt.