Add '-t' test mode for printing commands without executing