X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=ggo.h;h=e81b10c6a3846f2b3c73bd14de56264216a2ba89;hp=40723ea91d2123e66e65b516db9bb1da17a8cf1f;hb=a7f2d19821d3251298364b8a45d5c5f7bf9d5baa;hpb=6442f07bb08eb6e557086587f997b1785ea18ef7 diff --git a/ggo.h b/ggo.h index 40723ea9..e81b10c6 100644 --- a/ggo.h +++ b/ggo.h @@ -1,9 +1,20 @@ +/* + * Copyright (C) 2008-2013 Andre Noll + * + * Licensed under the GPL v2. For licencing details see COPYING. + */ + +/** \file ggo.h Functions and structures for help text handling. */ + +/** + * Used by executables that can not use gengetopt's generated help function. + */ struct ggo_help { - const char *purpose; - const char *usage; + /** The lines of the short help text. */ const char **short_help; + /** The lines of the detailed help text. */ const char **detailed_help; }; void ggo_print_help(struct ggo_help *help, int detailed_help); -void printf_or_die(const char *fmt, ...); +__printf_1_2 void printf_or_die(const char *fmt, ...);