< prev index next >

src/java.security.jgss/windows/classes/sun/security/krb5/internal/tools/KinitOptions.java

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) 2000, 2012, 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) 2000, 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
*** 135,145 **** action = 2; } else if (args[i].equals("-l")) { lifetime = getTime(Config.duration(args[++i])); } else if (args[i].equals("-r")) { renewable_lifetime = getTime(Config.duration(args[++i])); ! } else if (args[i].equalsIgnoreCase("-help")) { printHelp(); System.exit(0); } else if (p == null) { // Haven't yet processed a "principal" p = args[i]; try { --- 135,149 ---- action = 2; } else if (args[i].equals("-l")) { lifetime = getTime(Config.duration(args[++i])); } else if (args[i].equals("-r")) { renewable_lifetime = getTime(Config.duration(args[++i])); ! } else if (args[i].equalsIgnoreCase("-?") || ! args[i].equalsIgnoreCase("-h") || ! args[i].equalsIgnoreCase("--help") || ! // -help: legacy. ! args[i].equalsIgnoreCase("-help")) { printHelp(); System.exit(0); } else if (p == null) { // Haven't yet processed a "principal" p = args[i]; try {
< prev index next >