make file output conditional on command line flags