code: def parse_args():
      """
      python smx2rst.py -f data.json
      """
      parser = argparse.ArgumentParser(
          description=("Merlin Support Matrix Tool")
      )
  
      parser.add_argument(
          "-f",
          "--file",
          type=str,
          help="JSON data file",
      )
  
      parser.add_argument(
          "-c",
          "--config",
          type=str,
          help="YAML configuration file",
      )
  
      parser.add_argument(
          "-d",
          "--dir",
          type=str,
          help="Output directory for RST table snippets",
      )
  
      args = parser.parse_args()
      return args
  
file_path: Merlin/docs/smx2rst.py
imports: import argparse
  import json
  import logging
  import os
  import re
  import sys
  import typing
  from pathlib import Path
  import yaml
  from mergedeep import merge
label_desc: Use image node_id 2 for calling a global function with example usage: parse_args() and returns: args