Skip to content

Commit 798d47e

Browse files
authored
Replace argparse with RichHelpFormatter for CLI
1 parent ce7715f commit 798d47e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyupgradecheck/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import argparse
21
import json
32
import time
43

54
from halo import Halo
5+
from rich_argparse import RichHelpFormatter
66

77
from .checker import check_environment, get_installed_packages, parse_requirements_file
88

99

1010
def main():
11-
p = argparse.ArgumentParser(
11+
p = RichHelpFormatter.make_rich_parser(
1212
prog="pyupgradecheck",
1313
description="Check installed packages for Python version compatibility.",
1414
)

0 commit comments

Comments
 (0)