From c08e55920cbe1def90e6563cbdbd7b659fd0c179 Mon Sep 17 00:00:00 2001 From: Speenah Date: Sat, 24 Aug 2024 16:43:21 -0400 Subject: [PATCH] Add print choice descriptions to help text --- fanctrl.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fanctrl.py b/fanctrl.py index 2dc97e4..703e465 100644 --- a/fanctrl.py +++ b/fanctrl.py @@ -115,11 +115,12 @@ def initParser(self): printCommand = commandsSubParser.add_parser( "print", - description="print the selected information" + description="print the selected information", + formatter_class=argparse.RawTextHelpFormatter ) printCommand.add_argument( "print_selection", - help="what should be printed", + help="current - The current strategy\nlist - List available strategies\nspeed - The current fan speed percentage", nargs="?", type=str, choices=["current",