I can even mess up command line parsing :)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10376 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
19ab5531d8
commit
1bcd71834b
@ -121,14 +121,14 @@ main(int argc, char *argv[])
|
||||
|
||||
type_code attrType = B_STRING_TYPE;
|
||||
|
||||
int32 i = 2;
|
||||
int32 i = 1;
|
||||
|
||||
if (!strcmp(argv[1], "-t")) {
|
||||
// Get the attribute type
|
||||
if (typeForString(argv[2], &attrType) != B_OK)
|
||||
invalidAttrType(argv[2]);
|
||||
|
||||
i++;
|
||||
i += 2;
|
||||
}
|
||||
|
||||
const char *attrName = argv[i++];
|
||||
|
Loading…
Reference in New Issue
Block a user