ICU-1220 usage() if no arg to -f or -t.

X-SVN-Rev: 7873
This commit is contained in:
Yves Arrouye 2002-03-03 07:06:27 +00:00
parent f5fcc22bbb
commit a5f2175b26

View File

@ -771,10 +771,14 @@ int main(int argc, char **argv)
iter++;
if (iter != end)
fromcpage = *iter;
else
usage(pname, 1);
} else if (strcmp("-t", *iter) == 0 || !strcmp("--to-code", *iter)) {
iter++;
if (iter != end)
tocpage = *iter;
else
usage(pname, 1);
} else if (strcmp("-x", *iter) == 0) {
iter++;
if (iter != end)