R
Richard Tierney
To create help output (the response to "myprog --help", for example) I
currently create a big .h file, which includes a single string, such
as:
static char *help_text = "\
myprog: my program\n\
loads and\n\
loads of\n\
painfully manually\n\
formatted and\n\
justified text\n"
There's got to be a better way to do this - any ideas? Ideally, I
would like to write the help as a plain text file. Of course, I don't
want to distribute this file with the program, so it needs some
preprocessing. I'm on Linux.
Cheers
Richard
currently create a big .h file, which includes a single string, such
as:
static char *help_text = "\
myprog: my program\n\
loads and\n\
loads of\n\
painfully manually\n\
formatted and\n\
justified text\n"
There's got to be a better way to do this - any ideas? Ideally, I
would like to write the help as a plain text file. Of course, I don't
want to distribute this file with the program, so it needs some
preprocessing. I'm on Linux.
Cheers
Richard