Using isatty for pipe detection
Using option or isatty