From a632ae1e79e15454d6bb633f420e68d3a3b4f1eb Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Tue, 21 Jan 2025 17:55:03 +0100 Subject: dbris: Add -m help option --- bin/dbris | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bin/dbris') 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 -- cgit v1.2.3