old_contents: from argparse import ArgumentParser
  from matplotlib import pyplot as plt
  from greengraph import Greengraph 
  
  def process():
      parser = ArgumentParser(description = "Generating a greengraph by using a start point, an end point, number of steps and the name of the file you want the graph to be stored at.")
      
      parser.add_argument('--from', '-f', dest = 'fromCity')
      parser.add_argument('--to', '-t', dest = 'toCity')
      parser.add_argument('--steps', '-s')
      parser.add_argument('--out', '-o')
  
      args = parser.parse_args()
  
      myGraph = Greengraph(args.fromCity, args.toCity)
      data = myGraph.green_between(args.steps)
      plt.plot(data)
      plt.savefig(args.out)
      
  
  if __name__ == "__main__":
      process()
  
  
new_contents: import sys
  from argparse import ArgumentParser
  from matplotlib import pyplot as plt
  from greengraph import Greengraph 
  
  def process():
      parser = ArgumentParser(description = "Generating a greengraph by using a start point, an end point, number of steps and the name of the file you want the graph to be stored at.")
      
      parser.add_argument('--from', '-f', dest = 'fromCity')
      parser.add_argument('--to', '-t', dest = 'toCity')
      parser.add_argument('--steps', '-s')
      parser.add_argument('--out', '-o')
  
      # Print help message even if no flag is provided
      if len(sys.argv) == 1:
          parser.print_help()
          sys.exit(1)
  
      args = parser.parse_args()
  
      myGraph = Greengraph(args.fromCity, args.toCity)
      data = myGraph.green_between(args.steps)
      plt.plot(data)
      plt.savefig(args.out)
      
  
  if __name__ == "__main__":
      process()
  
  
subject: print help message when no args provided