lib/awskeyring_command.rb in awskeyring-1.2.0 vs lib/awskeyring_command.rb in awskeyring-1.3.0
- old
+ new
@@ -32,12 +32,16 @@
def self.exit_on_failure?
true
end
desc '--version, -v', I18n.t('__version.desc')
+ method_option 'no-remote', type: :boolean, aliases: '-r', desc: I18n.t('method_option.noremote'), default: false
# print the version number
def __version
puts "Awskeyring v#{Awskeyring::VERSION}"
+ if !options['no-remote'] && Awskeyring::VERSION != Awskeyring.latest_version
+ puts "the latest version v#{Awskeyring.latest_version}"
+ end
puts "Homepage #{Awskeyring::HOMEPAGE}"
end
desc 'initialise', I18n.t('initialise.desc')
method_option :keychain, type: :string, aliases: '-n', desc: I18n.t('method_option.keychain')