Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
#include <isl/arg.h>
#include <isl/ctx.h>
#include <isl/arg.h>
#include <isl/ctx.h>
+static struct isl_arg help_arg[] = {
+ISL_ARG_PHANTOM_BOOL('h', "help", NULL, "print this help, then exit")
+ISL_ARG_END
+};
+
static void set_default_choice(struct isl_arg *arg, void *opt)
{
*(unsigned *)(((char *)opt) + arg->offset) = arg->u.choice.default_value;
static void set_default_choice(struct isl_arg *arg, void *opt)
{
*(unsigned *)(((char *)opt) + arg->offset) = arg->u.choice.default_value;
printf("\n\n");
print_help(arg, NULL);
printf("\n\n");
print_help(arg, NULL);
- if (any_version(arg)) {
- printf("\n");
+ printf("\n");
+ if (any_version(arg))
printf(" -V, --version\n");
printf(" -V, --version\n");
+ print_bool_help(help_arg, NULL);