aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNat Lasseter <nat.lasseter@york.ac.uk>2023-02-16 17:07:40 +0000
committerNat Lasseter <nat.lasseter@york.ac.uk>2023-02-16 17:07:40 +0000
commit116dc940349ad09e0743f42777aefb6bc1526c9a (patch)
tree276adca853f424b7cefd5ff3bb616ca23d11a6ce
parentb7bd5fa604c994660fd4718e503484a65973a5c2 (diff)
Replace no_clip with dont_clip, fix because weird optimist behaviour for no_ flagsHEADmaster
-rwxr-xr-xtwofa4
1 files changed, 2 insertions, 2 deletions
diff --git a/twofa b/twofa
index d5e2526..81d23a3 100755
--- a/twofa
+++ b/twofa
@@ -128,7 +128,7 @@ Usage:
where [opts] are:
EOS
- opt :no_clip, "Do not copy code to the clipboard"
+ opt :dont_clip, "Do not copy code to the clipboard"
opt :twofa_file, "Location of the twofa secrets file",
type: :string, default: File.join(ENV["HOME"], ".twofa")
end
@@ -163,7 +163,7 @@ when 'hotp'
File.open(TWOFAFILE, ?w).puts SECRETS.puts
end
-unless opts[:no_clip] then
+unless opts[:dont_clip] then
require "clipboard"
Clipboard.copy(code)
puts "(Copied to clipboard)"