#622 --no-tty and --batch