8000 tweak wppm for a better help · winpython/winpython@ab8f5ef · GitHub
[go: up one dir, main page]

Skip to content

Commit ab8f5ef

Browse files
committed
tweak wppm for a better help
1 parent 8afdf92 commit ab8f5ef

File tree

1 file changed

+33
-40
lines changed

1 file changed

+33
-40
lines changed

winpython/wppm.py

Lines changed: 33 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -730,13 +730,9 @@ def main(test=False):
730730
else:
731731
bold = "\033[1m"
732732
unbold = "\033[0m"
733-
registerWinPythonHelp = f"""Register distribution
734-
Associate file extensions, icons and context menu {unbold}WinPython{unbold} with this WinPython.
735-
"""
733+
registerWinPythonHelp = f"Register distribution: associate file extensions, icons and context menu with this WinPython"
736734

737-
unregisterWinPythonHelp = f"""Unregister distribution
738-
De-Associate file extensions, icons and context menu {unbold}WinPython{unbold} from this WinPython.
739-
"""
735+
unregisterWinPythonHelp = f"Unregister distribution: de-associate file extensions, icons and context menu from this WinPython"
740736

741737
parser = ArgumentParser(
742738
description="WinPython Package Manager: handle a WinPython Distribution and its packages",
@@ -751,29 +747,29 @@ def main(test=False):
751747
help="optional package name or package wheel",
752748
)
753749
parser.add_argument(
754-
"-r",
755-
"--reverse-tree",
756-
dest="pipup",
750+
"--register",
751+
dest="registerWinPython",
757752
action="store_const",
758753
const=True,
759754
default=False,
760-
help=f"show reverse dependancies of the given package[option]. {unbold}wppm -r pytest[test]{unbold}",
755+
help=registerWinPythonHelp,
761756
)
762757
parser.add_argument(
763-
"-p",
764-
"--package-tree",
765-
dest="pipdown",
758+
"--unregister",
759+
dest="unregisterWinPython",
766760
action="store_const",
767761
const=True,
768762
default=False,
769-
help=f"show dependancies of the given package[option]. {unbold}wppm -p pandas[test]{unbold}",
763+
help=unregisterWinPythonHelp,
770764
)
771765
parser.add_argument(
772-
"-l",
773-
dest="levels",
774-
type=int,
775-
default=2,
776-
help="show l levels of depth of hierarchy from given package default is 2 levels",
766+
"-v",
767+
"--verbose",
768+
dest="verbose",
769+
action="store_const",
770+
const=True,
771+
default=False,
772+
help="show more details on packages and actions",
777773
)
778774
parser.add_argument(
779775
"-ls",
@@ -782,47 +778,44 @@ def main(test=False):
782778
action="store_const",
783779
const=True,
784780
default=False,
785-
help=f"list packages matching the given package expression. {unbold}wppm -ls{unbold}",
786-
)
781+
help=f"list packages matching the given [optionnal] package expression: {unbold}wppm -ls{unbold}, {unbold}wppm -ls pand{unbold}",
782+
)
787783
parser.add_argument(
788-
"-lsa",
789-
"--list_all",
790-
dest="all",
784+
"-p",
785+
dest="pipdown",
791786
action="store_const",
792787
const=True,
793788
default=False,
794-
help="list details of packages matching the given regular expression (pip inspect)",
789+
help=f"show Package dependancies of the given package[option]: {unbold}wppm -p pandas[test]{unbold}",
795790
)
796791
parser.add_argument(
797-
"-v",
798-
"--verbose",
799-
dest="verbose",
792+
"-r",
793+
dest="pipup",
800794
action="store_const",
801795
const=True,
802796
default=False,
803-
help="show more from package summary and description",
797+
help=f"show Reverse dependancies of the given package[option]: {unbold}wppm -r pytest[test]{unbold}",
804798
)
805799
parser.add_argument(
806-
"--register",
807-
dest="registerWinPython",
808-
action="store_const",
809-
const=True,
810-
default=False,
811-
help=registerWinPythonHelp,
800+
"-l",
801+
dest="levels",
802+
type=int,
803+
default=2,
804+
help=f"show 'LEVELS' levels of dependancies of the package, default is 2: {unbold}wppm -p pandas -l1{unbold}",
812805
)
813806
parser.add_argument(
814-
"--unregister",
815-
dest="unregisterWinPython",
807+
"-lsa",
808+
dest="all",
816809
action="store_const",
817810
const=True,
818811
default=False,
819-
help=unregisterWinPythonHelp,
812+
help=f"list details of package names matching given regular expression: {unbold}wppm -lsa pandas -l1{unbold}",
820813
)
821814
parser.add_argument(
822815
"-t",
823816
dest="target",
824817
default=sys.prefix,
825-
help="path to target Python distribution " f'(default: "{sys.prefix}")',
818+
help=f'path to target Python distribution (default: "{sys.prefix}")',
826819
)
827820
parser.add_argument(
828821
"-i",
@@ -840,7 +833,7 @@ def main(test=False):
840833
action="store_const",
841834
const=True,
842835
default=False,
843-
help="uninstall package",
836+
help="uninstall package (use pip for more features)",
844837
)
845838
args = parser.parse_args()
846839
targetpython = None

0 commit comments

Comments
 (0)
0