old_contents: #!/usr/bin/python
  # Script to perform a convolution on a spectrum.
  # Can take a number of parameters if needed
  from __future__ import division, print_function
  from eniric.nIRanalysis import convolution, resample_allfiles
  
  import argparse
  
  
  def _parser():
      """Take care of all the argparse stuff.
  
      :returns: the args
      """
      parser = argparse.ArgumentParser(description='Helpful discription')
      parser.add_argument('spectrum', help='Spectrum name', type=str)
      parser.add_argument("-v", "--vsini", help="Rotational velocity of source",
                          type=float)
      parser.add_argument("-R", "--resolution", help="Observational resolution",
                          type=float)
      parser.add_argument("-b", "--band", type=str, default="ALL",
                          choices=["ALL", "VIS", "GAP", "Z", "Y", "J", "H", "K"],
                          help="Wavelength band to select")
      parser.add_argument('-d', '--data_dir', help='Data directory', type=str)
      parser.add_argument('--sample_rate', default=3.0, type=float,
                          help="Resample rate, pixels per FWHM. Default=3.0")
      parser.add_argument('--results', default=None, type=str,
                          help='Result directory Default=data_dir+"/../"')
      parser.add_argument('--resamples', default=None, type=str,
                          help='Resample directory. Default=data_dir+"/../"')
      parser.add_argument('--noresample', help='Resample output', default=True,
                          action="store_false")
  
      args = parser.parse_args()
      return args
  
  def main(spectrum, vsini, resolution, band, data_dir=None, results=None,
           resamples=None, sample_rate=3.0, noresample=False):
  
          # vsini, resolution, band and sample_rate can all be a series of values
      pass
  
  
  
  if __name__ == '__main__':
      args = vars(_parser())
      spectrum_name = args.pop('spectrum')  # positional arguments
  
      opts = {k: args[k] for k in args}
  
      main(spectrum_name, **opts)
  
new_contents: #!/usr/bin/python
  # Script to perform a convolution on a spectrum.
  # Can take a number of parameters if needed
  from __future__ import division, print_function
  from eniric.nIRanalysis import convolution, resample_allfiles
  
  import argparse
  
  
  def _parser():
      """Take care of all the argparse stuff.
  
      :returns: the args
      """
      parser = argparse.ArgumentParser(description='Helpful discription')
      parser.add_argument('spectrum', help='Spectrum name', type=str)
      parser.add_argument("-v", "--vsini", help="Rotational velocity of source",
                          type=float)
      parser.add_argument("-R", "--resolution", help="Observational resolution",
                          type=float)
      parser.add_argument("-b", "--band", type=str, default="ALL",
                          choices=["ALL", "VIS", "GAP", "Z", "Y", "J", "H", "K"],
                          help="Wavelength band to select")
      parser.add_argument('-d', '--data_dir', help='Data directory', type=str)
      parser.add_argument('--sample_rate', default=3.0, type=float,
                          help="Resample rate, pixels per FWHM. Default=3.0")
      parser.add_argument('--results', default=None, type=str,
                          help='Result directory Default=data_dir+"/../"')
      parser.add_argument('--resamples', default=None, type=str,
                          help='Resample directory. Default=data_dir+"/../"')
      parser.add_argument('--noresample', help='Resample output', default=False,
                          action="store_true")
      parser.add_argument('--normalize', help='Normalize for wavelength step', default=False,
                          action="store_true")
  
      args = parser.parse_args()
      return args
  
  
  def main(spectrum, vsini, resolution, band, data_dir=None, results=None,
           resamples=None, sample_rate=3.0, noresample=False, normalize=False):
  
          # vsini, resolution, band and sample_rate can all be a series of values
      pass
  
  
  
  if __name__ == '__main__':
      args = vars(_parser())
      spectrum_name = args.pop('spectrum')  # positional arguments
  
      opts = {k: args[k] for k in args}
  
      main(spectrum_name, **opts)
  
subject: Add normalize flag. fix action of noresample flag.