lib/cli/factor_task.rb in factor-0.0.5 vs lib/cli/factor_task.rb in factor-0.0.6
- old
+ new
@@ -28,13 +28,15 @@
#login with email/password
end
desc "token", "login with token"
+ method_option :email, :alias=>"-e", :type=>:string, :desc=>"Email address for Factor account", :required=>true
method_option :token, :alias=>"-t", :type=>:string, :desc=>"Token value to set", :required=>true
def token
config = get_config
config[:token]=options[:token]
+ config[:email]=options[:email]
save_config(config)
end
end
end
end