2 * Copyright (C) 2008 Andre Noll <maan@systemlinux.org>
4 * Licensed under the GPL v2. For licencing details see COPYING.
7 /** \file ggo.c Function for printing help. */
13 __printf_1_2 void printf_or_die(const char *fmt, ...)
19 ret = vprintf(fmt, argp);
23 fprintf(stderr, "%s: %s\n", __FUNCTION__, strerror(errno));
26 void ggo_print_help(struct ggo_help *help, int detailed_help)
33 p = help->detailed_help;
38 p += 3; /* skip -h and -V */
40 printf_or_die("\t%s\n", *p);