Skip to content

Commit

Permalink
[Console] Add ArgvInput::getRawTokens()
Browse files Browse the repository at this point in the history
  • Loading branch information
lyrixx committed Mar 14, 2024
1 parent 7e4f02e commit b5ab0e3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Symfony/Component/Console/CHANGELOG.md
@@ -1,6 +1,11 @@
CHANGELOG
=========

7.1
---

* Add `ArgvInput::getRawTokens()`

7.0
---

Expand Down
10 changes: 10 additions & 0 deletions src/Symfony/Component/Console/Input/ArgvInput.php
Expand Up @@ -345,6 +345,16 @@ public function getParameterOption(string|array $values, string|bool|int|float|a
return $default;
}

/**
* Returns un-parsed and not validated tokens.
*
* @return list<string>
*/
public function getRawTokens(): array
{
return $this->tokens;
}

/**
* Returns a stringified representation of the args passed to the command.
*/
Expand Down

0 comments on commit b5ab0e3

Please sign in to comment.