[PATCH 3/4] cli: define shared options, use for --help and --version