- g10/gpg.c (cmd_and_opt_values): Add delete-secret-subkeys command.
(opts): Add delete-secret-subkeys argparse option.
(main): Parse and invoke the delete-secret-subkeys command.
- g10/main.h (delete_keys): Add subkeys_only parameter.
- g10/delkey.c (delete_keys): Likewise.
(do_delete_key): Skip primary keys if subkeys_only is true.
- po/pt.po: Translate delete-secret-subkeys command description.
- doc/gpg.texi: Document the delete-secret-subkeys command.
The new delete-secret-subkeys command is a safer variant of the existing
delete-secret-keys command. It skips primary keys during the deletion
process, preventing accidental deletion of the user's primary key
even if an exact key description for the primary key is provided.
Signed-off-by: Matheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com>