Skip to content

Commit

Permalink
cleanup usage text for multiple tools
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalak committed Jan 26, 2024
1 parent 08a6fc3 commit 0063afc
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 22 deletions.
9 changes: 2 additions & 7 deletions bld/cc/gml/options.gml
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,9 @@
:chain. o p
:option. ?
:option. ? h
:target. any
:usagenochain.
:usage. print this message
:jusage. このメッセージを表示します
Expand Down Expand Up @@ -689,12 +690,6 @@
:usage. set code group name
:jusage. コード・グループ名を設定します
:option. h
:target. any
:usagenochain.
:usage. print this message
:jusage. このメッセージを表示します
:usagechain. h Debugging Information format
:option. hc
Expand Down
3 changes: 2 additions & 1 deletion bld/mstools/asaxp/c/translat.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
*
* Open Watcom Project
*
* Copyright (c) 2024 The Open Watcom Contributors. All Rights Reserved.
* Portions Copyright (c) 1983-2002 Sybase, Inc. All Rights Reserved.
*
* ========================================================================
Expand Down Expand Up @@ -172,7 +173,7 @@ void OptionsTranslate( OPT_STORAGE *cmdOpts, CmdLine *cmdLine )
BannerMessage();
}

if( cmdOpts->help || cmdOpts->_ ) {
if( cmdOpts->help || cmdOpts->_question ) {
PrintHelpMessage();
exit( EXIT_SUCCESS );

Expand Down
3 changes: 2 additions & 1 deletion bld/mstools/nmake/c/translat.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
*
* Open Watcom Project
*
* Copyright (c) 2024 The Open Watcom Contributors. All Rights Reserved.
* Portions Copyright (c) 1983-2002 Sybase, Inc. All Rights Reserved.
*
* ========================================================================
Expand Down Expand Up @@ -192,7 +193,7 @@ void OptionsTranslate( OPT_STORAGE *cmdOpts, CmdLine *cmdLine )
BannerMessage();
}

if( cmdOpts->help || cmdOpts->_ ) {
if( cmdOpts->help || cmdOpts->_question ) {
PrintHelpMessage();
exit( EXIT_SUCCESS );

Expand Down
2 changes: 1 addition & 1 deletion bld/rc/rc/c/param.c
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ int SetOptions( OPT_STORAGE *data, const char *infile, const char *outfile )
{
const char *p;

if( data->h ) {
if( data->_question ) {
CmdLineParms.PrintHelp = true;
PrintUsage();
return( 1 );
Expand Down
3 changes: 2 additions & 1 deletion bld/rc/rc/h/options.gml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@
:chain. v zk
:option. h ?
:option. ? h
:usagenochain.
:usage. print this message
:jusage. このメッセージを表示します
Expand Down
9 changes: 4 additions & 5 deletions bld/wasm/c/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Open Watcom Project
*
* Copyright (c) 2002-2023 The Open Watcom Contributors. All Rights Reserved.
* Copyright (c) 2002-2024 The Open Watcom Contributors. All Rights Reserved.
* Portions Copyright (c) 1983-2002 Sybase, Inc. All Rights Reserved.
*
* ========================================================================
Expand Down Expand Up @@ -848,6 +848,9 @@ static void set_options( OPT_STORAGE *data )
if( data->zq ) {
Options.quiet = true;
}
if( data->_question ) {
usage_msg();
}

switch( data->mem_model ) {
case OPT_ENUM_mem_model_mt:
Expand Down Expand Up @@ -1100,10 +1103,6 @@ static void set_options( OPT_STORAGE *data )
if( data->fi ) {
SetStringOption( &ForceInclude, &(data->fi_value) );
}
if( data->h ) {
usage_msg();
}

}

static void do_init_stuff( char **cmdline )
Expand Down
8 changes: 2 additions & 6 deletions bld/wasm/h/options.gml
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,9 @@
:chain. 2 3 4 5 6
:cmt.:chain. m
:option. ?
:usage. print this message
:jusage. このメッセージを表示します
:option. h
:option. ? h
:usagenochain.
:usage. print this message
:jusage. このメッセージを表示します
Expand Down

0 comments on commit 0063afc

Please sign in to comment.