ldaphotos/sources/include/main.h

35 lines
974 B
C
Raw Normal View History

/**
* Main.h: contains definitions for ldaphotos.c
*/
#ifndef LDAPHOTOS
#define LDAPHOTOS
#define VERSION "v0.0"
#define TITLE "LDAP Photo Album, by Catluck Kettlemerry"
#define PROGNAME "ldaphotos"
#define USAGE0 "Usage:"
#define USAGE1 "[OPTION...]"
#define OPTIONS0 "Options:"
#define OPTIONS1 "\t-v run verbosely"
#define OPTIONS2 "\t-h show help and exit"
#define OPTIONS3 "\t-t provide terse output"
#define OPTIONS4 "\t-f <path> Read input from file <path>"
#define OPTIONS5 ""
#define OPTIONS6 ""
#define OPTIONS7 ""
#define OPTIONS8 ""
#define OPTIONS9 ""
#define OPTIONS10 "\t-p Print the effects of the given options for this invocation"
void print_help(void){
printf("%s %s\n", TITLE, VERSION);
printf("%s %s %s\n", USAGE0, PROGNAME, USAGE1);
printf("%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n",
OPTIONS0, OPTIONS1, OPTIONS2, OPTIONS3, OPTIONS4,
OPTIONS5, OPTIONS6, OPTIONS7, OPTIONS8, OPTIONS9,
OPTIONS10);
}
#endif