Unverified Commit a632ae1e authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

dbris: Add -m help option

parent 0c5496f0
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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