From 116dc940349ad09e0743f42777aefb6bc1526c9a Mon Sep 17 00:00:00 2001 From: Nat Lasseter Date: Thu, 16 Feb 2023 17:07:40 +0000 Subject: Replace no_clip with dont_clip, fix because weird optimist behaviour for no_ flags --- twofa | 4 ++-- 1 file 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)" -- cgit v1.2.1