mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 09:34:38 +02:00
8189102: All tools should support -?, -h and --help
Reviewed-by: kvn, jjg, weijun, alanb, rfield, ksrini
This commit is contained in:
parent
1655b15477
commit
22762d1cdc
59 changed files with 680 additions and 152 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2018, 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
|
||||
|
@ -153,7 +153,7 @@ static const char* nbasename(const char* progname) {
|
|||
" -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" \
|
||||
" -?, -h, --help print this help message\n" \
|
||||
" -V, --version print program version\n" \
|
||||
"\n" \
|
||||
"Exit Status:\n" \
|
||||
|
@ -313,7 +313,7 @@ int unpacker::run(int argc, char **argv) {
|
|||
case 'h':
|
||||
case '?':
|
||||
usage(&u, argv[0], true);
|
||||
exit(1);
|
||||
exit(0);
|
||||
|
||||
default:
|
||||
const char* inenv = isenvarg? " in ${UNPACK200_FLAGS}": "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue