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
e3264709
Commit
e3264709
authored
Nov 22, 2012
by
Francois Gouget
Committed by
Alexandre Julliard
Nov 23, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Print the usage to stdout when invoked with --help.
parent
86c3f683
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
main.c
server/main.c
+13
-13
No files found.
server/main.c
View file @
e3264709
...
...
@@ -46,18 +46,18 @@ const char *server_argv0;
/* parse-line args */
static
void
usage
(
void
)
static
void
usage
(
FILE
*
fh
)
{
fprintf
(
stderr
,
"Usage: %s [options]
\n\n
"
,
server_argv0
);
fprintf
(
stderr
,
"Options:
\n
"
);
fprintf
(
stderr
,
" -d[n], --debug[=n] set debug level to n or +1 if n not specified
\n
"
);
fprintf
(
stderr
,
" -f, --foreground remain in the foreground for debugging
\n
"
);
fprintf
(
stderr
,
" -h, --help display this help message
\n
"
);
fprintf
(
stderr
,
" -k[n], --kill[=n] kill the current wineserver, optionally with signal n
\n
"
);
fprintf
(
stderr
,
" -p[n], --persistent[=n] make server persistent, optionally for n seconds
\n
"
);
fprintf
(
stderr
,
" -v, --version display version information and exit
\n
"
);
fprintf
(
stderr
,
" -w, --wait wait until the current wineserver terminates
\n
"
);
fprintf
(
stderr
,
"
\n
"
);
fprintf
(
fh
,
"Usage: %s [options]
\n\n
"
,
server_argv0
);
fprintf
(
fh
,
"Options:
\n
"
);
fprintf
(
fh
,
" -d[n], --debug[=n] set debug level to n or +1 if n not specified
\n
"
);
fprintf
(
fh
,
" -f, --foreground remain in the foreground for debugging
\n
"
);
fprintf
(
fh
,
" -h, --help display this help message
\n
"
);
fprintf
(
fh
,
" -k[n], --kill[=n] kill the current wineserver, optionally with signal n
\n
"
);
fprintf
(
fh
,
" -p[n], --persistent[=n] make server persistent, optionally for n seconds
\n
"
);
fprintf
(
fh
,
" -v, --version display version information and exit
\n
"
);
fprintf
(
fh
,
" -w, --wait wait until the current wineserver terminates
\n
"
);
fprintf
(
fh
,
"
\n
"
);
}
static
void
parse_args
(
int
argc
,
char
*
argv
[]
)
...
...
@@ -92,7 +92,7 @@ static void parse_args( int argc, char *argv[] )
foreground
=
1
;
break
;
case
'h'
:
usage
();
usage
(
stdout
);
exit
(
0
);
break
;
case
'k'
:
...
...
@@ -114,7 +114,7 @@ static void parse_args( int argc, char *argv[] )
wait_for_lock
();
exit
(
0
);
default:
usage
();
usage
(
stderr
);
exit
(
1
);
}
}
...
...
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