fix update secret option, handle KeyboardInterrupt and EOFError in parse_args()