2002-11-01 18:22:40 +00:00
|
|
|
/*
|
|
|
|
* help.c: usage instructions
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include "halibut.h"
|
|
|
|
|
2021-09-15 01:41:55 +00:00
|
|
|
static const char *const usagetext[] = {
|
|
|
|
"halibut [options] file.but [file.but...]",
|
2003-04-04 14:43:36 +00:00
|
|
|
NULL
|
2002-11-01 18:22:40 +00:00
|
|
|
};
|
|
|
|
|
2002-11-01 21:52:36 +00:00
|
|
|
void usage(void)
|
2002-11-01 18:22:40 +00:00
|
|
|
{
|
2021-09-15 01:41:55 +00:00
|
|
|
const char *const *p;
|
2003-04-04 14:43:36 +00:00
|
|
|
for (p = usagetext; *p; p++)
|
|
|
|
puts(*p);
|
2002-11-01 18:22:40 +00:00
|
|
|
}
|
|
|
|
|
2002-11-01 21:52:36 +00:00
|
|
|
void showversion(void)
|
2002-11-01 18:22:40 +00:00
|
|
|
{
|
2003-04-04 14:43:36 +00:00
|
|
|
printf("Halibut, %s\n", version);
|
2002-11-01 18:22:40 +00:00
|
|
|
}
|