Made command line evaluation more robust, it now also accepts a "=" as separator between attribute name and value.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13139 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-06-15 03:44:18 +00:00
parent ffa1bb09e9
commit 32d0dbbbf8

View File

@ -167,10 +167,14 @@ TPeopleApp::ArgvReceived(int32 argc, char **argv)
if (gFields[index].attribute != NULL) {
if (!window)
window = NewWindow();
while (*arg != ' ')
while (arg[0] && arg[0] != ' ' && arg[0] != '=')
arg++;
arg++;
window->SetField(index, arg);
if (arg[0]) {
arg++;
window->SetField(index, arg);
}
}
}
}