[Pidgin] #10182: "--config" option with "-" in folder name causes error messages
Pidgin
trac at pidgin.im
Thu Sep 3 09:25:29 EDT 2009
#10182: "--config" option with "-" in folder name causes error messages
--------------------------+-------------------------------------------------
Reporter: darkfoxprime | Owner: datallah
Type: defect | Status: new
Milestone: | Component: winpidgin (gtk)
Version: 2.6.1 | Resolution:
Keywords: |
--------------------------+-------------------------------------------------
Comment(by darkfoxprime):
{{{
/* If debug or help or version flag used, create console for
output */
for (i = 1; i < argc; i++) {
if (argv[i][0] == '-') {
/* check if we're looking at -- or - option */
if (argv[i][1] == '-') {
if (strchr(argv[i], "--debug") == argv[i])
debug = TRUE;
else if (strchr(argv[i], "--help") ==
argv[i])
help = TRUE;
else if (strchr(argv[i], "--version") ==
argv[i])
version = TRUE;
else if (strchr(argv[i], "--multiple") ==
argv[i])
multiple = TRUE;
} else {
if (strchr(argv[i], 'd')) {
debug = TRUE;
} else if (strchr(argv[i], 'h')) {
help = TRUE;
} else if (strchr(argv[i], 'v')) {
version = TRUE;
} else if (strchr(argv[i], 'm')) {
multiple = TRUE;
}
}
}
}
}}}
--
Ticket URL: <http://developer.pidgin.im/ticket/10182#comment:5>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list