def args_fixup():
global saved_key_handle<EOL>saved_key_handle = args.hmac_kh<EOL>args.key_handle = pyhsm.util.key_handle_to_int(args.hmac_kh)<EOL>if not (args.mode_otp or args.mode_short_otp or args.mode_totp or args.mode_hotp or args.mode_pwhash):<EOL><INDENT>my_log_message(args, syslog.LOG_ERR, '<STR_LIT>')<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>global client_ids<EOL>if args.clients_file != None:<EOL><INDENT>if not args.mode_otp:<EOL><INDENT>my_log_message(args, syslog.LOG_ERR, '<STR_LIT>')<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>client_ids = load_clients_file(args.clients_file)<EOL>if not client_ids:<EOL><INDENT>my_log_message(args, syslog.LOG_ERR, '<STR_LIT>' % (args.clients_file))<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>loaded_client_ids = load_clients_file(default_clients_file)<EOL>if loaded_client_ids:<EOL><INDENT>args.clients_file = default_clients_file<EOL>client_ids = loaded_client_ids<EOL><DEDENT><DEDENT>
Various cleanups/initializations based on result of parse_args().