diff options
author | David Shaw <[email protected]> | 2005-09-14 22:31:21 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2005-09-14 22:31:21 +0000 |
commit | 4afa18bcaacb2d75dd1eb97830b9e8fb709d2104 (patch) | |
tree | 538df6c905749d6cc0d7515eada2175829fb08a0 /g10/import.c | |
parent | * keyedit.c (show_names): Moved name display code out from (diff) | |
download | gnupg-4afa18bcaacb2d75dd1eb97830b9e8fb709d2104.tar.gz gnupg-4afa18bcaacb2d75dd1eb97830b9e8fb709d2104.zip |
* main.h, misc.c (parse_options): Add the ability to have help
strings in xxx-options commands.
* keyserver.c (keyserver_opts), import.c (parse_import_options),
export.c (parse_export_options), g10.c (parse_list_options, main):
Add help strings to xxx-options.
Diffstat (limited to '')
-rw-r--r-- | g10/import.c | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/g10/import.c b/g10/import.c index 63e64b923..7eeccbad4 100644 --- a/g10/import.c +++ b/g10/import.c @@ -91,20 +91,28 @@ parse_import_options(char *str,unsigned int *options,int noisy) { struct parse_options import_opts[]= { - {"import-local-sigs",IMPORT_LOCAL_SIGS,NULL}, - {"repair-pks-subkey-bug",IMPORT_REPAIR_PKS_SUBKEY_BUG,NULL}, - {"fast-import",IMPORT_FAST,NULL}, - {"convert-sk-to-pk",IMPORT_SK2PK,NULL}, - {"merge-only",IMPORT_MERGE_ONLY,NULL}, - {"import-clean",IMPORT_CLEAN_SIGS|IMPORT_CLEAN_UIDS,NULL}, - {"import-clean-sigs",IMPORT_CLEAN_SIGS,NULL}, - {"import-clean-uids",IMPORT_CLEAN_UIDS,NULL}, + {"import-local-sigs",IMPORT_LOCAL_SIGS,NULL, + N_("import signatures that are marked as local-only")}, + {"repair-pks-subkey-bug",IMPORT_REPAIR_PKS_SUBKEY_BUG,NULL, + N_("repair damage from the pks keyserver during import")}, + {"fast-import",IMPORT_FAST,NULL, + N_("do not update the trustdb after import")}, + {"convert-sk-to-pk",IMPORT_SK2PK,NULL, + N_("create a public key when importing a secret key")}, + {"merge-only",IMPORT_MERGE_ONLY,NULL, + N_("only accept updates to existing keys")}, + {"import-clean-sigs",IMPORT_CLEAN_SIGS,NULL, + N_("remove unusable signatures after import")}, + {"import-clean-uids",IMPORT_CLEAN_UIDS,NULL, + N_("remove unusable user IDs after import")}, + {"import-clean",IMPORT_CLEAN_SIGS|IMPORT_CLEAN_UIDS,NULL, + N_("all import-clean-* options from above")}, /* Aliases for backward compatibility */ - {"allow-local-sigs",IMPORT_LOCAL_SIGS,NULL}, - {"repair-hkp-subkey-bug",IMPORT_REPAIR_PKS_SUBKEY_BUG,NULL}, + {"allow-local-sigs",IMPORT_LOCAL_SIGS,NULL,NULL}, + {"repair-hkp-subkey-bug",IMPORT_REPAIR_PKS_SUBKEY_BUG,NULL,NULL}, /* dummy */ - {"import-unusable-sigs",0,NULL}, - {NULL,0,NULL} + {"import-unusable-sigs",0,NULL,NULL}, + {NULL,0,NULL,NULL} }; return parse_options(str,options,import_opts,noisy); |