Skip to content

Modertool999/cli-subcommand-representation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

CLI Subcommand Representation

A Python script that recursively prints out a command line program's usage, flags, and subcommands

Usage

python3 extract.py -t COMMAND_NAME -s SUBCOMMAND_NAME

Note: the -s SUBCOMMAND_NAME part is optional

Examples

# 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

About

Script that recursively prints out a specific command line program's usage, flags, and subcommands

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages