Improve error message when --tag flag is missing
Open
enhancement
- Dominant language
- Go
- Stars
- 0
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
Tag flag (`--tag`) should be treated as required when project actually uses `{{ .Tag }}` placeholder. Otherwise it should be ignored.
#### Steps to reproduce the issue
```sh
go build cmd/deploy/*
cd examples/simple
../../deploy -e local
```
#### What's the expected result?
```
Missing required flag: --tag
```
#### What's the actual result?
```
Value for {{.tag}} placeholder is not specified, available placeholders:
.environment.vars.variable, .service.dir, .service.name, .project.dir, .project.name, .project.vars.variable, .environment.dir, .environment.name
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.