Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
args = parser.parse_args()
if args.action == 'help':
target_subparser = SUBPARSERS.get(args.subcommand)
if target_subparser is None:
parser.print_help()
else:
target_subparser.print_help()
elif args.action == 'normalize':
normalize_action(args)
elif args.action == 'domain':
domain_action(args)
elif args.action == 'join':
join_action(args)
elif args.action is None:
parser.print_help()