summaryrefslogtreecommitdiff
path: root/usage.go
diff options
context:
space:
mode:
Diffstat (limited to 'usage.go')
-rw-r--r--usage.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/usage.go b/usage.go
index fb5da75..c76644f 100644
--- a/usage.go
+++ b/usage.go
@@ -84,12 +84,6 @@ func (p *Parser) writeUsageForSubcommand(w io.Writer, cmd *command) {
ancestors = append(ancestors, ancestor.name)
ancestor = ancestor.parent
}
- // Print environment only variables
- for _, spec := range cmd.specs {
- if spec.short == "" && spec.long == "" {
- ancestors = append(ancestors, "["+spec.env+"="+strings.ToLower(spec.env)+"_value"+"]")
- }
- }
// print the beginning of the usage string
fmt.Fprint(w, "Usage:")