old_contents: import os
  import argparse
  
  parser = argparse.ArgumentParser(add_help=True, description="A simple static site generator")
  
  parser.add_argument("-i", "--initialize", action="store", default=None, dest="dirname",
                      help="Initialize the directory structure inside DIRNAME")
  
  args = parser.parse_args()
  
  def ensure_dir_exists(dirname, mode=0o755):
      """Creates a directory with the given name if doesn't already exist"""
  
      if not os.path.exists(dirname):
          os.mkdir(dirname, mode)
  
new_contents: import os
  import argparse
  
  parser = argparse.ArgumentParser(add_help=True, description="A simple static site generator")
  
  parser.add_argument("-i", "--initialize", action="store", default=None, dest="dirname",
                      help="Initialize the directory structure inside DIRNAME")
  
  args = parser.parse_args()
  
  INPUT_DIRS = ('static', 'templates', 'content/entries', 'content/pages')
  
  def ensure_dir_exists(dirname, mode=0o755):
      """Creates a directory with the given name if doesn't already exist"""
  
      if not os.path.exists(dirname):
          os.makedirs(dirname, mode)
  
subject: add list of input directories and modify dir creation function to enable recursive creation