diff --git a/android/client/haltest.c b/android/client/haltest.c
index e775d0e..92cd811 100644
--- a/android/client/haltest.c
+++ b/android/client/haltest.c
printf("options:\n"
"\t-i --ivi Initialize only IVI interfaces\n"
"\t-n, --no-init Don't initialize any interfaces\n"
- "\t --version Print version\n"
+ "\t-v --version Print version\n"
"\t-h, --help Show help options\n");
}
-enum {
- PRINT_VERSION = 1000
-};
-
static void print_version(void)
{
printf("haltest version %s\n", VERSION);
{ "no-init", no_argument, NULL, 'n' },
{ "ivi", no_argument, NULL, 'i' },
{ "help", no_argument, NULL, 'h' },
- { "version", no_argument, NULL, PRINT_VERSION },
+ { "version", no_argument, NULL, 'v' },
{ NULL }
};
for (;;) {
int opt;
- opt = getopt_long(argc, argv, "inh", main_options, NULL);
+ opt = getopt_long(argc, argv, "inhv", main_options, NULL);
if (opt < 0)
break;
case 'h':
usage();
exit(0);
- case PRINT_VERSION:
+ case 'v':
print_version();
exit(0);
default: