Skip to content

Commit

Permalink
trurl.md: list the url: prefix like the others
Browse files Browse the repository at this point in the history
Closes #339
  • Loading branch information
bagder committed Aug 27, 2024
1 parent a1e18d4 commit 50eb9ca
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions trurl.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 50eb9ca

Please sign in to comment.