A Python script that recursively prints out a command line program's usage, flags, and subcommands
python3 extract.py -t COMMAND_NAME -s SUBCOMMAND_NAMENote: the -s SUBCOMMAND_NAME part is optional
# Docker top-level overview
python3 extract.py -t git
# Git push details (with placeholders for deeper levels)
python3 extract.py -t docker -s buildx
Note: subcommands of subcommands are displayed as '...' if they exist to avoid extenisve recursion