Add --output option for setting output filename