Skip to content

chengdol/python_click

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Click Module

click module is used to create command line application.

This repo contains a pattern/structure that is easy to extend subcommands(reference).

Here we have 2 commands: apple and peach, we can invoke them as the subcommand of make.py(wrapper).

# call for help message
python make.py --help
python make.py apple --help
python make.py peach --help

# execution
python make.py --debug apple -fc red 5
python make.py --debug peach -bc blue 5

Or make script executable with shabang #!/usr/bin/env python:

./make.py --help

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages