Add --help-env command
This commit is contained in:
parent
a037219f83
commit
a11d31dc44
|
@ -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
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue