OSDN Git Service

Update version.
[osdn-codes/osdn-cli.git] / lib / osdn / cli / runner.rb
index 874b01c..d9eeb4f 100644 (file)
@@ -80,6 +80,10 @@ module OSDN
         command = get_command_class(command_name).new(logger)
         logger.debug "Run command #{command_name}"
         begin
+          Signal.trap "INT" do
+            puts :INT
+            exit
+          end
           command.run
         rescue OSDNClient::ApiError => e
           begin