@main.command(name='<STR_LIT>', short_help='<STR_LIT>')<EOL>@click.argument('<STR_LIT>')<EOL>@stash_option<EOL>@passphrase_option<EOL>@backend_option<EOL>def lock_key(key_name,<EOL>stash,<EOL>passphrase,<EOL>backend):
stash = _get_stash(backend, stash, passphrase)<EOL>try:<EOL><INDENT>click.echo('<STR_LIT>')<EOL>stash.lock(key_name=key_name)<EOL>click.echo('<STR_LIT>')<EOL><DEDENT>except GhostError as ex:<EOL><INDENT>sys.exit(ex)<EOL><DEDENT>
Lock a key to prevent it from being deleted, purged or modified

    `KEY_NAME` is the name of the key to lock