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:
@@ -121,14 +121,14 @@ main(int argc, char *argv[])
|
|||||||
|
|
||||||
type_code attrType = B_STRING_TYPE;
|
type_code attrType = B_STRING_TYPE;
|
||||||
|
|
||||||
int32 i = 2;
|
int32 i = 1;
|
||||||
|
|
||||||
if (!strcmp(argv[1], "-t")) {
|
if (!strcmp(argv[1], "-t")) {
|
||||||
// Get the attribute type
|
// Get the attribute type
|
||||||
if (typeForString(argv[2], &attrType) != B_OK)
|
if (typeForString(argv[2], &attrType) != B_OK)
|
||||||
invalidAttrType(argv[2]);
|
invalidAttrType(argv[2]);
|
||||||
|
|
||||||
i++;
|
i += 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *attrName = argv[i++];
|
const char *attrName = argv[i++];
|
||||||
|
|||||||
Reference in New Issue
Block a user