Allow the post file extension to be given in the generate command.

added a flag to set the default extension on the command line.