Last active
May 6, 2021 08:51
-
-
Save dineshkumarkb/b17d61e7a5f4d88d0ac0feed4ceb05dc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from rich.console import Console | |
| from rich.markdown import Markdown | |
| import sys | |
| console = Console() | |
| def display_help(): | |
| with open("help.md", "r+") as help_file: | |
| console.print(Markdown(help_file.read())) | |
| sys.exit(0) | |
| if len(sys.argv) >= 2: | |
| if sys.argv[1].lower() == "help": | |
| display_help() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment