Allow setting output mode through command line parameter