diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2022-09-16 07:44:44 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2022-09-16 07:44:44 +0900 |
commit | d16c5c88e7c8ddd51f2f1a2bda7cab1260884806 (patch) | |
tree | 040e9903e35155165150fc8021e025df1e3947fe /tools/gpg-wks-client.c | |
parent | 699753c432ffa2dcfafb3a14037a415ccc14feac (diff) | |
download | gpg2-d16c5c88e7c8ddd51f2f1a2bda7cab1260884806.tar.gz gpg2-d16c5c88e7c8ddd51f2f1a2bda7cab1260884806.tar.bz2 gpg2-d16c5c88e7c8ddd51f2f1a2bda7cab1260884806.zip |
Imported Upstream version 2.2.26upstream/2.2.26
Diffstat (limited to 'tools/gpg-wks-client.c')
-rw-r--r-- | tools/gpg-wks-client.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/gpg-wks-client.c b/tools/gpg-wks-client.c index 56768aa..4ebf50f 100644 --- a/tools/gpg-wks-client.c +++ b/tools/gpg-wks-client.c @@ -16,6 +16,7 @@ * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, see <https://www.gnu.org/licenses/>. + * SPDX-License-Identifier: LGPL-2.1-or-later */ #include <config.h> @@ -159,9 +160,11 @@ my_strusage( int level ) switch (level) { + case 9: p = "LGPL-2.1-or-later"; break; case 11: p = "gpg-wks-client"; break; case 12: p = "@GNUPG@"; break; case 13: p = VERSION; break; + case 14: p = GNUPG_DEF_COPYRIGHT_LINE; break; case 17: p = PRINTABLE_OS_NAME; break; case 19: p = ("Please report bugs to <@EMAIL@>.\n"); break; @@ -196,7 +199,7 @@ parse_arguments (ARGPARSE_ARGS *pargs, ARGPARSE_OPTS *popts) enum cmd_and_opt_values cmd = 0; int no_more_options = 0; - while (!no_more_options && optfile_parse (NULL, NULL, NULL, pargs, popts)) + while (!no_more_options && gnupg_argparse (NULL, pargs, popts)) { switch (pargs->r_opt) { @@ -244,7 +247,7 @@ parse_arguments (ARGPARSE_ARGS *pargs, ARGPARSE_OPTS *popts) cmd = pargs->r_opt; break; - default: pargs->err = 2; break; + default: pargs->err = ARGPARSE_PRINT_ERROR; break; } } @@ -277,6 +280,7 @@ main (int argc, char **argv) pargs.argv = &argv; pargs.flags = ARGPARSE_FLAG_KEEP; cmd = parse_arguments (&pargs, opts); + gnupg_argparse (NULL, &pargs, NULL); if (log_get_errorcount (0)) exit (2); |