Commit 92725d7

mo khan <mo@mokhan.ca>
2014-09-26 20:49:08
show all key values when no name is given.
1 parent 36657da
Changed files (1)
lib
lib/tfa/cli.rb
@@ -11,8 +11,8 @@ module TFA
     end
 
     desc "show NAME", "shows the secret for the given key"
-    def show(name)
-      ShowCommand.new(storage).run([name])
+    def show(name = nil)
+      ShowCommand.new(storage).run([name].compact)
     end
 
     desc "totp NAME", "generate a Time based One Time Password"