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
f94608af
Commit
f94608af
authored
Aug 17, 2015
by
John Hodge
Browse files
Client - Fix #8 using another hack
parent
ba19b86e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/client/main.c
View file @
f94608af
...
...
@@ -855,7 +855,9 @@ int ParseArguments(int argc, char *argv[])
// If it doesn't start with a '-', or -- has been seen
// XXX: Hack - If parsing "user type", don't parse - options
bool
hack_usertype
=
(
i
>
2
&&
strcmp
(
argv
[
i
-
2
],
"user"
)
==
0
&&
strcmp
(
argv
[
i
-
1
],
"type"
)
==
0
);
if
(
rest_free
||
arg
[
0
]
!=
'-'
||
hack_usertype
)
// XXX: Hack - Treat negative numbers as free
bool
hack_is_int
=
(
arg
[
0
]
==
'-'
&&
isdigit
(
arg
[
1
])
!=
0
);
if
(
rest_free
||
arg
[
0
]
!=
'-'
||
hack_usertype
||
hack_is_int
)
{
if
(
giTextArgc
==
MAX_TXT_ARGS
)
{
...
...
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