Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if len(sys.argv) == 1:
- args_dict['input_type'] = 'stdin'
- args_dict['output_type'] = 'stdout'
- if args.input_file_name:
- args_dict['input_type'] = 'file'
- elif args.host or args.port or args.syslog_facility or args.daemonize:
- args_dict['input_type'] = 'syslog'
- if args.output_file_name:
- args_dict['output_type'] = 'file'
- elif not args.output_mozdef or args.output_syslog or args.output_stderr or args.output_file:
- args_dict['output_type'] = 'stdout'
- if args.config:
- if verbose:
- print("ignoring command line options and using config")
- with open(args.config) as fd:
- args_dict = json.load(fd)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement