old_contents: """A main program for Byterun."""
  
  import argparse
  import logging
  
  from . import execfile
  
  parser = argparse.ArgumentParser()
  parser.add_argument('-m', dest='module', action='store_true')
  parser.add_argument('-v', dest='verbose', action='store_true')
  parser.add_argument('to_run')
  parser.add_argument('arg', nargs=argparse.REMAINDER)
  args = parser.parse_args()
  
  if args.module:
      run_fn = execfile.run_python_module
  else:
      run_fn = execfile.run_python_file
  
  level = logging.DEBUG if args.verbose else logging.WARNING
  logging.basicConfig(level=level)
  
  argv = [args.to_run] + args.arg
  run_fn(args.to_run, argv)
  
new_contents: """A main program for Byterun."""
  
  import argparse
  import logging
  
  from . import execfile
  
  parser = argparse.ArgumentParser(
      prog="byterun",
      description="Run Python programs with a Python bytecode interpreter.",
  )
  parser.add_argument(
      '-m', dest='module', action='store_true',
      help="prog is a module name, not a file name.",
  )
  parser.add_argument(
      '-v', '--versbose', dest='verbose', action='store_true',
      help="trace the execution of the bytecode.",
  )
  parser.add_argument(
      'prog',
      help="The program to run.",
  )
  parser.add_argument(
      'args', nargs=argparse.REMAINDER,
      help="Arguments to pass to the program.",
  )
  args = parser.parse_args()
  
  if args.module:
      run_fn = execfile.run_python_module
  else:
      run_fn = execfile.run_python_file
  
  level = logging.DEBUG if args.verbose else logging.WARNING
  logging.basicConfig(level=level)
  
  argv = [args.prog] + args.args
  run_fn(args.prog, argv)
  
subject: Make the argument handling nicer.