From 2384e64025d80265e4744364de58c6a7ae0c4f4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 5 Jul 2006 14:45:42 +0000 Subject: [PATCH] "addattr" now also recognizes "raw" as a type. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18043 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/addattr/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bin/addattr/main.cpp b/src/bin/addattr/main.cpp index 9ff13b09b3..9058ceeead 100644 --- a/src/bin/addattr/main.cpp +++ b/src/bin/addattr/main.cpp @@ -40,6 +40,8 @@ const struct { {B_DOUBLE_TYPE, "double"}, {B_BOOL_TYPE, "bool"}, + + {B_RAW_TYPE, "raw"}, }; const uint32 kNumSupportedTypes = sizeof(kSupportedTypes) / sizeof(kSupportedTypes[0]); @@ -86,7 +88,7 @@ usage(int returnValue) fprintf(stderr, "usage: %s [-t type] attr value file1 [file2...]\n" " or: %s [-f value-from-file] [-t type] attr file1 [file2...]\n\n" "\tType is one of:\n" - "\t\tstring, mime, int, llong, float, double, bool,\n" + "\t\tstring, mime, int, llong, float, double, bool, raw\n" "\t\tor a numeric value (ie. 0x1234, 42, 'ABCD', ...)\n" "\tThe default is \"string\"\n", gProgramName, gProgramName); @@ -107,7 +109,7 @@ invalidAttrType(const char *attrTypeName) { fprintf(stderr, "%s: attribute type \"%s\" is not valid\n", gProgramName, attrTypeName); fprintf(stderr, "\tTry one of: string, mime, int, llong, float, double,\n"); - fprintf(stderr, "\t\tbool, or a numeric value (ie. 0x1234, 42, 'ABCD', ...)\n"); + fprintf(stderr, "\t\tbool, raw, or a numeric value (ie. 0x1234, 42, 'ABCD', ...)\n"); exit(1); }