Output the help text to stdout

git-svn-id: svn://svn.cc65.org/cc65/trunk@3414 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2005-03-24 20:08:41 +00:00
parent 137b66ac97
commit 8a6fdb8562
9 changed files with 282 additions and 290 deletions

View file

@ -60,8 +60,7 @@
static void Usage (void)
/* Print usage information and exit */
{
fprintf (stderr,
"Usage: %s <operation> lib file|module ...\n"
printf ("Usage: %s <operation> lib file|module ...\n"
"Operation is one of:\n"
"\ta\tAdd modules\n"
"\td\tDelete modules\n"

View file

@ -84,8 +84,7 @@
static void Usage (void)
/* Print usage information and exit */
{
fprintf (stderr,
"Usage: %s [options] file\n"
printf ("Usage: %s [options] file\n"
"Short options:\n"
" -D name[=value]\tDefine a symbol\n"
" -I dir\t\tSet an include directory search path\n"

View file

@ -77,8 +77,7 @@
static void Usage (void)
/* Print usage information to stderr */
{
fprintf (stderr,
"Usage: %s [options] file\n"
printf ("Usage: %s [options] file\n"
"Short options:\n"
" -Cl\t\t\tMake local variables static\n"
" -Dsym[=defn]\t\tDefine a symbol\n"

View file

@ -588,8 +588,7 @@ static void ConvertO65 (const char* File)
static void Usage (void)
/* Print usage information and exit */
{
fprintf (stderr,
"Usage: %s [options] file [...]\n"
printf ("Usage: %s [options] file [...]\n"
"Short options:\n"
" -c\t\t\tCompile and assemble but don't link\n"
" -d\t\t\tDebug mode\n"

View file

@ -68,8 +68,7 @@
static void Usage (void)
/* Print usage information and exit */
{
fprintf (stderr,
"Usage: %s [options] file\n"
printf ("Usage: %s [options] file\n"
"Short options:\n"
" -V\t\t\tPrint the version number\n"
" -g\t\t\tAdd debug info to object file\n"

View file

@ -69,8 +69,7 @@
static void Usage (void)
/* Print usage information and exit */
{
fprintf (stderr,
"Usage: %s [options] [inputfile]\n"
printf ("Usage: %s [options] [inputfile]\n"
"Short options:\n"
" -g\t\t\tAdd debug info to object file\n"
" -h\t\t\tHelp (this text)\n"

View file

@ -213,7 +213,7 @@ void openVFile (void) {
}
void printUsage (void) {
fprintf(stderr, "Usage: %s [options] file\n"
printf("Usage: %s [options] file\n"
"Options:\n"
"\t-h, -?\t\tthis help\n"
"\t-f\t\tforce writting files\n"

View file

@ -89,8 +89,7 @@ static unsigned LibFiles = 0; /* Count of library files linked */
static void Usage (void)
/* Print usage information and exit */
{
fprintf (stderr,
"Usage: %s [options] module ...\n"
printf ("Usage: %s [options] module ...\n"
"Short options:\n"
" -C name\t\tUse linker config file\n"
" -L path\t\tSpecify a library search path\n"

View file

@ -6,7 +6,7 @@
/* */
/* */
/* */
/* (C) 2002-2003 Ullrich von Bassewitz */
/* (C) 2002-2005 Ullrich von Bassewitz */
/* Römerstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
@ -70,8 +70,7 @@
static void Usage (void)
{
fprintf (stderr,
"Usage: %s [options] file\n"
printf ("Usage: %s [options] file\n"
"Short options:\n"
" -C name\t\tUse simulator config file\n"
" -L dir\t\tSet a chip directory search path\n"