author | ecalot
<ecalot> 2004-08-31 10:14:44 UTC |
committer | ecalot
<ecalot> 2004-08-31 10:14:44 UTC |
parent | 7f8191fe6265a709ea1df23563c4f06b038b66bc |
FP/src/main.c | +10 | -5 |
diff --git a/FP/src/main.c b/FP/src/main.c index 2ccdd47..ceb4cd0 100644 --- a/FP/src/main.c +++ b/FP/src/main.c @@ -78,15 +78,20 @@ int main (int argc, char **argv) { } while (c!=-1); /* TODO: traditional parsing: megahit (level) */ - /* Check syntax, help and version screens */ - + + /* Check syntax, help and version screens */ if (hasFlag(help_flag)) { - fprintf(stderr,"This is a help screen\n"); + fprintf(stderr,"Allowed options are:\n -t, --megahit\n "\ + "-l[level], --level=[level]\n-m\n--version\n--help\n\n"); exit(1); } - if (hasFlag(version_flag)) { - fprintf(stderr,"This is a version screen\n"); + if (hasFlag(version_flag)) { /* TODO: send version to headers */ + fprintf(stderr,"FreePrince " FP_VERSION "\nWritten by FreePrince Development Team\n\n"); + fprintf(stderr,"Check http://www.princed.com.ar for updates.\n"); + fprintf(stderr,"This is free software; see the source for copying conditions. "\ + "There is NO\nwarranty; not even for MERCHANTABILITY or FITNESS "\ + "FOR A PARTICULAR PURPOSE.\n"); exit(1); }