Add --help-env command

This commit is contained in:
Pedro Piñera 2018-08-02 12:43:41 +02:00
parent a037219f83
commit a11d31dc44
2 changed files with 4 additions and 1 deletions

View File

@ -7,6 +7,7 @@ Please, check out guidelines: https://keepachangelog.com/en/1.0.0/
### Added
- Install command https://github.com/tuist/tuist/pull/83 by @pepibumur.
- `--help-env` command to tuistenv by @pepibumur.
## 0.1.0

View File

@ -43,7 +43,9 @@ public final class CommandRegistry {
public func run() {
do {
if let parsedArguments = try parse() {
if processArguments().dropFirst().first == "--help-env" {
parser.printUsage(on: stdoutStream)
} else if let parsedArguments = try parse() {
try process(arguments: parsedArguments)
} else {
try commandRunner.run()