mirror of
https://review.haiku-os.org/haiku
synced 2025-01-31 18:56:49 +01:00
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:
parent
ffa1bb09e9
commit
32d0dbbbf8
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user