Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
UCC
OpenDispense2
Commits
07091048
Commit
07091048
authored
Mar 19, 2015
by
John Hodge
Browse files
Client - Quit when --help/-h is passed
parent
68cc05f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/client/main.c
View file @
07091048
...
...
@@ -855,7 +855,7 @@ int ParseArguments(int argc, char *argv[])
case
'h'
:
case
'?'
:
ShowUsage
();
return
0
;
exit
(
0
)
;
case
'c'
:
if
(
i
>
2
&&
strcmp
(
argv
[
i
-
1
],
"type"
)
==
0
)
...
...
@@ -950,7 +950,7 @@ int ParseArguments(int argc, char *argv[])
case
'-'
:
if
(
strcmp
(
argv
[
i
],
"--help"
)
==
0
)
{
ShowUsage
();
return
0
;
exit
(
0
)
;
}
else
if
(
strcmp
(
argv
[
i
],
"--dry-run"
)
==
0
)
{
gbDryRun
=
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