Skip to content

Commit

Permalink
list subsystems when invalid subsystem is specified
Browse files Browse the repository at this point in the history
  • Loading branch information
alkazar committed Dec 5, 2024
1 parent 24ae8f8 commit f3b015e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions usr/bin/hwctl
Original file line number Diff line number Diff line change
Expand Up @@ -580,4 +580,13 @@ if [[ "$SUBSYSTEM" == @(audio|datetime|display|system-battery|system-info|storag
$SUBSYSTEM $@
else
echo "Error: unknown subsystem $SUBSYSTEM"
echo "Available subsystems:"
echo " - audio"
echo " - datetime"
echo " - display"
echo " - system-battery"
echo " - system-info"
echo " - storage"
echo " - ssh"
echo " - environment"
fi

0 comments on commit f3b015e

Please sign in to comment.