old_contents: #!/usr/bin/env python
  # encoding: utf-8
  """
  This is the command line interface for bake. For people who want to take
  bake.py and extend it for their own circumstances, modifying the main routine
  in this module is probably the best place to start.
  """
  
  # If you make your own bake frontend, just do
  # import bake
  import api as bake
  # and do bake.load
  # import load
  import sys
  
  
  def main(args=sys.argv[1:]):
      # Set up command line argument options
      optparser = bake.make_optparser()
      options, arguments = optparser.parse_args()
  
      bake.process_options(options)
  
      ## Configuration is stored in the bake.cfg file in the current directory
      config = bake.load_config()
  
      ## End processing of command line parameters
      ## Prepare for big loop
  
      # The overwrite command pushes lines onto the top of the bake parameter
      # file
      if options.overwrite:
          lines = options.overwrite
      else:
          lines = []
  
      # Load bake parameter file
      bake.load.load(l for l in lines)
      if options.file:
          lines.extend(bake.load.load_file(options.file))
  
      # This mixIterator object is kind of the core of bake.
      (label, grid,
       mixIterator) = bake.make_iterator(config, 
                                         lines, options.slice_start,
                                         options.slice_end)
  
      ## This is the main loop, iterating over each set of values
      bake.default_loop(label, grid, mixIterator, config, options)
  
  if __name__ == '__main__':
      main()
  
new_contents: #!/usr/bin/env python
  # encoding: utf-8
  """
  This is the command line interface for bake. For people who want to take
  bake.py and extend it for their own circumstances, modifying the main routine
  in this module is probably the best place to start.
  """
  
  # If you make your own bake frontend, just do
  # import bake
  import api as bake
  # and do bake.load
  # import load
  import sys
  
  
  def main(args=sys.argv[1:]):
      # Set up command line argument options
      optparser = bake.make_optparser()
      options, arguments = optparser.parse_args()
  
      bake.process_options(options)
  
      ## Configuration is stored in the bake.cfg file in the current directory
      config = bake.load_config()
  
      ## End processing of command line parameters
      ## Prepare for big loop
  
      # Load bake parameter file
      if options.file:
          lines = bake.load.load_file(options.file)
      else:
          lines = []
      print lines
  
      # The overwrite command pushes lines onto the top of the bake parameter
      # file
      if options.overwrite:
          lines.extend(bake.load.load(l for l in options.overwrite))
  
      # This mixIterator object is kind of the core of bake.
      (label, grid,
       mixIterator) = bake.make_iterator(config, 
                                         lines, options.slice_start,
                                         options.slice_end)
  
      ## This is the main loop, iterating over each set of values
      bake.default_loop(label, grid, mixIterator, config, options)
  
  if __name__ == '__main__':
      main()
  
subject: Fix bug introduced in previous commit, I think it was c04a