ICU-1220 add -? for compatibility with other tools

X-SVN-Rev: 6737
This commit is contained in:
Yves Arrouye 2001-11-10 06:00:26 +00:00
parent 085bb39818
commit a150871504
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
// -*- Coding: utf-8; -*- [all uconv resource files]
// Copyright (c) 2000 IBM, Inc. and Others.
// $Revision: 1.3 $
// $Revision: 1.4 $
//
// Root translation file for uconv messages.
// So you want to translate this file??? Great!
@ -30,7 +30,7 @@ root
lcUsageWord { "usage" }
ucUsageWord { "Usage" }
usage { "{0}: {1} [ -h, --help ] [ -l, --list ] [ -L, --list-transliterators ] [ -x transliterator ] -f, --from-code code -t, --to-code code [ file ]\n" }
usage { "{0}: {1} [ -h, -?, --help ] [ -l, --list ] [ -L, --list-transliterators ] [ -x transliterator ] -f, --from-code code -t, --to-code code [ file ]\n" }
help { "Options: -h, --help\t\tprint this message\n"
" -l, --list\t\tlist all available encodings\n"

View file

@ -331,7 +331,7 @@ int main(int argc, char** argv)
printAllConverters(pname);
goto normal_exit;
}
else if (strcmp("-h", *iter) == 0 || !strcmp("--help", *iter))
else if (strcmp("-h", *iter) == 0 || !strcmp("-?", *iter) == 0 || !strcmp("--help", *iter))
{
usage(pname, 0);
}