with --debug, args.d is not defined anymore