in reply to CLI Default Action

Assuming it can take input from STDIN when used as a command line tool, you could determine whether to enter interactive mode or not based on -t STDIN.