text: """
  This module illustrates a error handling code for an automation task in python
  """
  import sys
  import argparse
  
  def main(number, other_number, output):
      result = number / other_number
      print(f'The result is {result}', file=output)
  
  if __name__ == '__main__':
      parser = argparse.ArgumentParser()
      parser.add_argument('-n1', type=int, help='a number', default=1)
      parser.add_argument('-n2', type=int, help='another number', default=1)
      parser.add_argument('-o', dest='output', type=argparse.FileType('w'),
                          help='output file', default=sys.stdout)
  
      args = parser.parse_args()
  
      main(args.n1, args.n2, args.output)
  