summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authornetworkException <git@nwex.de>2025-06-09 23:29:58 +0200
committerBirte Friesel <derf@chaosdorf.de>2025-06-17 18:02:09 +0200
commit866866965ac959e0cf358c1849251ffe47651485 (patch)
tree37b56399e83c205bdfbdae0aa03ed96bc468b82b /bin
parentd7a9946aa12807da1a2a1c1dd7f31de94f1691bc (diff)
motis-m: Fix --json for trip lookup
Diffstat (limited to 'bin')
-rwxr-xr-xbin/motis-m2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/motis-m b/bin/motis-m
index 15b9bc7..036d880 100755
--- a/bin/motis-m
+++ b/bin/motis-m
@@ -270,7 +270,7 @@ if ($raw_json_output) {
}
if ($json_output) {
- if ( $opt{journey} ) {
+ if ( $opt{trip_id} ) {
say JSON->new->convert_blessed->encode( $status->result );
}
else {