Skip to content

Commit

Permalink
Add print choice descriptions to help text
Browse files Browse the repository at this point in the history
  • Loading branch information
Speenah committed Aug 24, 2024
1 parent 2045194 commit c08e559
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fanctrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit c08e559

Please sign in to comment.