Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e41ec931
Commit
e41ec931
authored
Dec 12, 2002
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Dec 12, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not display the long options in the usage message if we don't
actually support them. Small other cleanups.
parent
a96caa07
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
wrc.c
tools/wrc/wrc.c
+8
-8
No files found.
tools/wrc/wrc.c
View file @
e41ec931
...
...
@@ -115,9 +115,10 @@ static char usage[] =
" -s Add structure with win32/16 (PE/NE) resource directory
\n
"
" -t Generate indirect loadable resource tables
\n
"
" -T Generate only indirect loadable resources tables
\n
"
" -V Print version
e
nd exit
\n
"
" -V Print version
a
nd exit
\n
"
" -w 16|32 Select win16 or win32 output (default is win32)
\n
"
" -W Enable pedantic warnings
\n
"
#ifdef HAVE_GETOPT_LONG
"The following long options are supported:
\n
"
" --input Synonym for -i.
\n
"
" --output Synonym for -o.
\n
"
...
...
@@ -129,7 +130,8 @@ static char usage[] =
" --language Synonym for -l.
\n
"
" --preprocessor Specify the preprocessor to use, including arguments.
\n
"
" --help Prints a usage summary.
\n
"
" --version Prints the version number for wrc.
\n
"
" --version Synonym for -V.
\n
"
#endif
"Input is taken from stdin if no sourcefile specified.
\n
"
"Debug level 'n' is a bitmask with following meaning:
\n
"
" * 0x01 Tell which resource is parsed (verbose mode)
\n
"
...
...
@@ -304,7 +306,7 @@ static struct option long_options[] = {
{
"language"
,
1
,
0
,
'l'
},
{
"preprocessor"
,
1
,
0
,
1
},
{
"help"
,
0
,
0
,
2
},
{
"version"
,
0
,
0
,
3
},
{
"version"
,
0
,
0
,
'V'
},
{
0
,
0
,
0
,
0
}
};
#endif
...
...
@@ -351,11 +353,9 @@ int main(int argc,char *argv[])
fprintf
(
stderr
,
"--preprocessor option not yet supported, ignored.
\n
"
);
break
;
case
2
:
fprintf
(
stderr
,
usage
);
return
0
;
case
3
:
fprintf
(
stderr
,
version_string
);
return
0
;
printf
(
usage
);
exit
(
0
);
break
;
case
'a'
:
alignment
=
atoi
(
optarg
);
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment