if (-t STDIN) { # Ran from the command line }