summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2025-01-21 17:55:03 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2025-01-21 17:55:03 +0100
commita632ae1e79e15454d6bb633f420e68d3a3b4f1eb (patch)
treec70a4ce25843da18fd47a46db3cdee0ab3e20c2d /bin
parent0c5496f0361916f2c5eec807863cf0966cad88c4 (diff)
dbris: Add -m help option
Diffstat (limited to 'bin')
-rwxr-xr-xbin/dbris8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/dbris b/bin/dbris
index e809ece..a11a5c8 100755
--- a/bin/dbris
+++ b/bin/dbris
@@ -158,6 +158,14 @@ if ( $date or $time ) {
$opt{datetime} = $dt;
}
+if ( $mots and $mots eq 'help' ) {
+ say "Supported modes of transmit (-m / --modes-of-transit):";
+ for my $mot ( sort keys %known_mot ) {
+ say $mot;
+ }
+ exit 0;
+}
+
if ($mots) {
# Passing unknown MOTs to the backend results in HTTP 422 Unprocessable Entity