From 2d1df942a95d95a62f7f4cda3dd2d7a691b3a2c3 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 27 Aug 2024 16:03:26 +0200 Subject: [PATCH] trurl.md: list the url: prefix like the others --- trurl.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/trurl.md b/trurl.md index 6efa5299..c979893b 100644 --- a/trurl.md +++ b/trurl.md @@ -109,13 +109,17 @@ user, password, options, host, port, path, query, fragment and zoneid. **{component}** expands to nothing if the given component does not have a value. -Components are shown URL decoded by default. If you instead write the -component prefixed with `url:` like `{url:path}`, it gets output URL encoded. -As a shortcut, `url:` also works written as a single colon: `{:path}`. +Components are shown URL decoded by default. URL decoding a component may cause problems to display it. Such problems make a warning get displayed unless **--quiet** is used. +trurl supports a range of different qualifiers, or prefixes, to the component +that changes how it handles it: + +If **url:** is specified, `{url:path}`, the component gets output URL encoded. +As a shortcut, `url:` also works written as a single colon: `{:path}`. + If **strict:** is specified, like `{strict:path}`, URL decode problems are turned into errors. In this stricter mode, a URL decode problem makes trurl stop what it is doing and return with exit code 10.