added --print-all and --no-stdin