code: def parse_known_args():
      
      parser = ArgumentParser()
      parser.add_argument("-l", "--loop", type=int, help="Loop every X seconds")
      parser.add_argument('-V', '--version',
                          action='store_true',
                          dest='version',
                          help='Print the version number and exit')
      parser.add_argument("-u", "--update",
                          action='store_true',
                          dest="update",
                          help="Update the software from online repo")
      parser.add_argument("-p", "--problem",
                          action='store_true',
                          dest="problem",
                          help="Report a problem")
      parser.add_argument("-m", "--memory",
                          action='store_true',
                          dest="memory",
                          help="Run memory tests")
      args, otherthings = parser.parse_known_args()
      return args, otherthings, parser
docs: Parse command line arguments