lib/universa_tools/uniring.rb in universa_tools-0.1.1 vs lib/universa_tools/uniring.rb in universa_tools-0.1.2
- old
+ new
@@ -64,15 +64,16 @@
opts.on("--all", "allow delete/update more than one key at a time") {
@allow_all = true
}
- opts.on("-p PASSWORD", "--password PASSWORD", "specify password in the command line") { |x|
+ opts.on("-p PASSWORD", "--password PASSWORD", "specify keyring password in the command line") { |x|
@password = x
}
- opts.on("-a [TAG,]KEY_FILE", "--add [TAG,]KEYFILE", Array) { |tag, file_name|
+ opts.on("-a [TAG,]KEY_FILE", "--add [TAG,]KEYFILE", Array, "add key from a file, with optional tag",
+ "tag could be used to select keys in extract/sign/delete operations") { |tag, file_name|
task {
if !file_name
tag, file_name = file_name, tag
end
file_name, password = file_name.split(':', 2)
@@ -103,10 +104,10 @@
error "Only one key could be deleted unless --all is specified"
end
end
} }
- opts.on("-l", "--list") {
+ opts.on("-l", "--list", "show keys in a ring") {
task {
keyring # this may ask for password so do it first
puts "--" * 40
puts ANSI.yellow { "KeyRing v.#{keyring.version.to_s}: " } + ANSI.bold { @keyring_path }
puts "--" * 40