summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2013-02-16 15:40:18 +0000
committerLars Wirzenius <liw@liw.fi>2013-02-16 15:40:18 +0000
commita70ab9a6c0c1be7e94a9a87229b72a4bea5309b0 (patch)
tree08b3e404fa81e15a6de8b27e43856d5ce04158a5
parentc19a4f2fdd3be0dee624de61477533d7d0532402 (diff)
downloadobnam-a70ab9a6c0c1be7e94a9a87229b72a4bea5309b0.tar.gz
Add arg synopsis to add-key and remove-key subcommands
Reported-By: Lars Kruse
-rw-r--r--NEWS2
-rw-r--r--obnamlib/plugins/encryption_plugin.py6
2 files changed, 6 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index f92850b8..a1a832fb 100644
--- a/NEWS
+++ b/NEWS
@@ -37,6 +37,8 @@ Bug fixes:
Reported by andrewsh.
* The dependency on Larch is now for 1.20121216 or newer, since that is
needed for fsck to work.
+* The manual page did not document the client name arguments to the
+ `add-key` and `remove-key` subcommands. Reported by Lars Kruse.
Version 1.3, released 2012-12-16
--------------------------------
diff --git a/obnamlib/plugins/encryption_plugin.py b/obnamlib/plugins/encryption_plugin.py
index 6098258a..3f13cc23 100644
--- a/obnamlib/plugins/encryption_plugin.py
+++ b/obnamlib/plugins/encryption_plugin.py
@@ -59,8 +59,10 @@ class EncryptionPlugin(obnamlib.ObnamPlugin):
self.app.add_subcommand('client-keys', self.client_keys)
self.app.add_subcommand('list-keys', self.list_keys)
self.app.add_subcommand('list-toplevels', self.list_toplevels)
- self.app.add_subcommand('add-key', self.add_key)
- self.app.add_subcommand('remove-key', self.remove_key)
+ self.app.add_subcommand(
+ 'add-key', self.add_key, arg_synopsis='[CLIENT-NAME]...')
+ self.app.add_subcommand(
+ 'remove-key', self.remove_key, arg_synopsis='[CLIENT-NAME]...')
self.app.add_subcommand('remove-client', self.remove_client,
arg_synopsis='[CLIENT-NAME]...')