From 81733529993eefdbf29e85663e315dc34b8645f0 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 16 Sep 2024 13:54:55 +0200 Subject: [PATCH] tests: verify --get + --json rejects --- tests.json | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/tests.json b/tests.json index 8d2299f7..4d935061 100644 --- a/tests.json +++ b/tests.json @@ -3244,5 +3244,35 @@ "stderr": "trurl error: only single-letter query separators are supported\ntrurl error: Try trurl -h for help\n", "returncode": 4 } + }, + { + "input": { + "arguments": [ + "url", + "--json", + "--get", + "{port}" + ] + }, + "expected": { + "stdout": "", + "stderr": "trurl error: --get is mutually exclusive with --json\ntrurl error: Try trurl -h for help\n", + "returncode": 4 + } + }, + { + "input": { + "arguments": [ + "url", + "--get", + "{port}", + "--json" + ] + }, + "expected": { + "stdout": "", + "stderr": "trurl error: --json is mutually exclusive with --get\ntrurl error: Try trurl -h for help\n", + "returncode": 4 + } } ]