From 50eb9ca24a819298e6a9633a8acc54a1e4cc5da4 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 Closes #339 --- trurl.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/trurl.md b/trurl.md index 6efa5299..f2eff73c 100644 --- a/trurl.md +++ b/trurl.md @@ -109,13 +109,18 @@ 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, like `{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.