Skip to content

Commit

Permalink
Removed incorrect claim that arglist attribute preserve spaces
Browse files Browse the repository at this point in the history
Removed incorrect claim that the `arglist` attribute of the `commands`
promise type, preserves spaces in the arguments. I beleieve it is ment
to be that way, but it currently isn't. Thus we can revert this commit
from master, once it is implemented in one of the next minor releases.
For patch releases, we should keep the behavious as is, since it may be
relied upon.

Ticket: CFE-2724
Changelog: None
Signed-off-by: Lars Erik Wik <[email protected]>
  • Loading branch information
larsewi committed Sep 15, 2023
1 parent 591f3f5 commit c2ba283
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions reference/promise-types/commands.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,9 @@ So in the example above the command would be:
**Description:** Allows to separate the arguments to the command from the
command itself, using an slist.

As with `args`, it is convenient to separate command and arguments.
With `arglist` you can use a slist directly instead of having to
provide a single string as with `args`. That's particularly useful
when there are embedded spaces and quotes in your arguments, but also
when you want to get them directly from a slist without going through
`join()` or other functions.
As with `args`, it is convenient to separate command and arguments. With
`arglist` you can use a slist directly instead of having to provide a single
string as with `args`.

The `arglist` is **appended** to `args` if that's defined, to preserve
backwards compatibility.
Expand Down

0 comments on commit c2ba283

Please sign in to comment.