aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cxrefbas.c2
-rw-r--r--dumpbas.c2
-rw-r--r--protbas.c16
-rw-r--r--renumbas.c10
-rw-r--r--unprotbas.c18
-rw-r--r--vxrefbas.c2
6 files changed, 25 insertions, 25 deletions
diff --git a/cxrefbas.c b/cxrefbas.c
index 690c0dd..8a7f8c1 100644
--- a/cxrefbas.c
+++ b/cxrefbas.c
@@ -38,7 +38,7 @@ void print_ref_table(void) {
}
void print_help(void) {
- fprintf(stderr, "Usage: %s [-v] program.bas\n", self);
+ printf("Usage: %s [-v] program.bas\n", self);
exit(0);
}
diff --git a/dumpbas.c b/dumpbas.c
index d5404d2..087e5b1 100644
--- a/dumpbas.c
+++ b/dumpbas.c
@@ -13,7 +13,7 @@ int endlineno = 32768;
/* dump tokens for each line in a BASIC program. easier to read than
a plain hex dump. */
void print_help(void) {
- fprintf(stderr, "Usage: %s [-v] [-s start-lineno] [-e end-lineno] <inputfile>\n", self);
+ printf("Usage: %s [-v] [-s start-lineno] [-e end-lineno] <inputfile>\n", self);
}
unsigned short getlineno(char opt, const char *arg) {
diff --git a/protbas.c b/protbas.c
index 5584049..4697fac 100644
--- a/protbas.c
+++ b/protbas.c
@@ -102,14 +102,14 @@ void breakcode(void) {
}
void print_help(void) {
- fprintf(stderr, "Usage: %s [-v] [-nc|-nv] [-s] [-x[r|NN]] <inputfile> <outputfile>\n", self);
- fprintf(stderr, " -v: Verbose.\n");
- fprintf(stderr, " -nc: Don't protect code.\n");
- fprintf(stderr, " -nv: Don't protect variable names.\n");
- fprintf(stderr, " -s: Shrink variable name table to min size.\n");
- fprintf(stderr, "-xNN: Hex code NN for variable names.\n");
- fprintf(stderr, " -xr: Random variable names.\n");
- fprintf(stderr, "Use - as a filename to read from stdin and/or write to stdout.\n");
+ printf("Usage: %s [-v] [-nc|-nv] [-s] [-x[r|NN]] <inputfile> <outputfile>\n", self);
+ printf(" -v: Verbose.\n");
+ printf(" -nc: Don't protect code.\n");
+ printf(" -nv: Don't protect variable names.\n");
+ printf(" -s: Shrink variable name table to min size.\n");
+ printf("-xNN: Hex code NN for variable names.\n");
+ printf(" -xr: Random variable names.\n");
+ printf("Use - as a filename to read from stdin and/or write to stdout.\n");
}
void parse_args(int argc, char **argv) {
diff --git a/renumbas.c b/renumbas.c
index ba26289..62a4f07 100644
--- a/renumbas.c
+++ b/renumbas.c
@@ -15,11 +15,11 @@ unsigned short limit = 0;
unsigned short newno;
void print_help(void) {
- fprintf(stderr, "Usage: %s [-v] [-s start-lineno] [-i increment] [-f first-lineno] <inputfile> <outputfile>\n", self);
- fprintf(stderr, " -v: Verbose.\n");
- fprintf(stderr, " -s <num>: Starting line number (default: 10).\n");
- fprintf(stderr, " -i <num>: Increment (default: 10).\n");
- fprintf(stderr, " -f <num>: Don't renumber lines less than <num> (default: 0).\n");
+ printf("Usage: %s [-v] [-s start-lineno] [-i increment] [-f first-lineno] <inputfile> <outputfile>\n", self);
+ printf(" -v: Verbose.\n");
+ printf(" -s <num>: Starting line number (default: 10).\n");
+ printf(" -i <num>: Increment (default: 10).\n");
+ printf(" -f <num>: Don't renumber lines less than <num> (default: 0).\n");
}
unsigned short getlineno(char opt, const char *arg) {
diff --git a/unprotbas.c b/unprotbas.c
index 5bde236..3c53492 100644
--- a/unprotbas.c
+++ b/unprotbas.c
@@ -386,15 +386,15 @@ void apply_var_map(void) {
}
void print_help(void) {
- fprintf(stderr, "Usage: %s [-v] [-f] [-n] [-g] [-c] [-r|-w] <inputfile> <outputfile>\n", self);
- fprintf(stderr, " -v: Verbose.\n");
- fprintf(stderr, " -f: Force variable name table rebuild.\n");
- fprintf(stderr, " -n: Do not rebuild variable name table, even if it's invalid.\n");
- fprintf(stderr, " -g: Remove trailing garbage, if present.\n");
- fprintf(stderr, " -c: Check only; no output file.\n");
- fprintf(stderr, " -w: Write variable names to 'varnames.txt'.\n");
- fprintf(stderr, " -r: Read variable names from 'varnames.txt'.\n");
- fprintf(stderr, "Use - as a filename to read from stdin and/or write to stdout.\n");
+ printf("Usage: %s [-v] [-f] [-n] [-g] [-c] [-r|-w] <inputfile> <outputfile>\n", self);
+ printf(" -v: Verbose.\n");
+ printf(" -f: Force variable name table rebuild.\n");
+ printf(" -n: Do not rebuild variable name table, even if it's invalid.\n");
+ printf(" -g: Remove trailing garbage, if present.\n");
+ printf(" -c: Check only; no output file.\n");
+ printf(" -w: Write variable names to 'varnames.txt'.\n");
+ printf(" -r: Read variable names from 'varnames.txt'.\n");
+ printf("Use - as a filename to read from stdin and/or write to stdout.\n");
}
void parse_args(int argc, char **argv) {
diff --git a/vxrefbas.c b/vxrefbas.c
index c08cb7f..1c4e1ab 100644
--- a/vxrefbas.c
+++ b/vxrefbas.c
@@ -13,7 +13,7 @@ unsigned char last_cmd = 0;
int refcounts[128];
void print_help(void) {
- fprintf(stderr, "Usage: %s [-v] program.bas\n", self);
+ printf("Usage: %s [-v] program.bas\n", self);
exit(0);
}