diff options
author | B. Watson <urchlay@slackware.uk> | 2024-06-22 13:29:19 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-06-22 13:29:19 -0400 |
commit | e40fe3585d07a6b8beee0dddf7d3d1defa3cf140 (patch) | |
tree | 33ebdb68ba3ee9b41ae415033c57584bc13b4e61 | |
parent | afc94c493aa6b5a684156a9fda4ef31a9fb201c1 (diff) | |
download | bw-atari8-tools-e40fe3585d07a6b8beee0dddf7d3d1defa3cf140.tar.gz |
all basic tools: help message goes to stdout, not stderr.
-rw-r--r-- | cxrefbas.c | 2 | ||||
-rw-r--r-- | dumpbas.c | 2 | ||||
-rw-r--r-- | protbas.c | 16 | ||||
-rw-r--r-- | renumbas.c | 10 | ||||
-rw-r--r-- | unprotbas.c | 18 | ||||
-rw-r--r-- | vxrefbas.c | 2 |
6 files changed, 25 insertions, 25 deletions
@@ -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); } @@ -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) { @@ -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) { @@ -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) { @@ -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); } |