< prev index next >

src/jdk.pack/share/native/unpack200/main.cpp

Print this page
rev 48074 : 8189102: All tools should support -?, -h and --help
Reviewed-by: kvn, jjg, weijun, alanb, rfield, ksrini

*** 1,7 **** /* ! * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 151,161 **** " -r, --remove-pack-file remove input file after unpacking\n" \ " -v, --verbose increase program verbosity\n" \ " -q, --quiet set verbosity to lowest level\n" \ " -l{F}, --log-file={F} output to the given log file,\n" \ " or '-' for standard output (default)\n" \ ! " -?, -h, --help print this message\n" \ " -V, --version print program version\n" \ "\n" \ "Exit Status:\n" \ " 0 if successful, >0 if an error occurred\n" --- 151,161 ---- " -r, --remove-pack-file remove input file after unpacking\n" \ " -v, --verbose increase program verbosity\n" \ " -q, --quiet set verbosity to lowest level\n" \ " -l{F}, --log-file={F} output to the given log file,\n" \ " or '-' for standard output (default)\n" \ ! " -?, -h, --help print this help message\n" \ " -V, --version print program version\n" \ "\n" \ "Exit Status:\n" \ " 0 if successful, >0 if an error occurred\n"
*** 311,321 **** exit(0); case 'h': case '?': usage(&u, argv[0], true); ! exit(1); default: const char* inenv = isenvarg? " in ${UNPACK200_FLAGS}": ""; if (hasoptarg) fprintf(u.errstrm, "Missing option string%s: %s\n", inenv, arg); --- 311,321 ---- exit(0); case 'h': case '?': usage(&u, argv[0], true); ! exit(0); default: const char* inenv = isenvarg? " in ${UNPACK200_FLAGS}": ""; if (hasoptarg) fprintf(u.errstrm, "Missing option string%s: %s\n", inenv, arg);
< prev index next >