From 753cc02789bd2dd95e575f8ea9dca07d91a9ed92 Mon Sep 17 00:00:00 2001 From: Thomas S Hatch Date: Tue, 12 Apr 2011 12:35:57 -0600 Subject: [PATCH] Add print options to the saltkey cli --- salt/cli/__init__.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/salt/cli/__init__.py b/salt/cli/__init__.py index 5ad3b7f5c0..8f9ecbf619 100644 --- a/salt/cli/__init__.py +++ b/salt/cli/__init__.py @@ -301,6 +301,18 @@ class SaltKey(object): action='store_true', help='Accept all pending keys') + parser.add_option('-p', + '--print', + dest='print', + default='', + help='Print the specified public key') + + parser.add_option('-P', + '--print-all', + dest='print_all', + default='', + help='Print all public keys') + parser.add_option('-c', '--config', dest='config',