Skip to content

Commit

Permalink
add default env args
Browse files Browse the repository at this point in the history
  • Loading branch information
wrfly committed May 14, 2018
1 parent e53c300 commit ac8e8dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.1
0.1.2
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ func main() {
&cli.StringFlag{
Name: "extra-args",
EnvVars: envVars("extra-args"),
Value: "-e HISTCONTROL=ignoredups -e TERM=xterm",
Usage: "extra args for your backend",
},
&cli.StringFlag{
Expand All @@ -102,7 +103,8 @@ func main() {
Flags: appFlags,
HideHelp: true,
Authors: author,
Version: fmt.Sprintf("Version: %s\tCommit: %s\tDate: %s", Version, CommitID, BuildAt),
Version: fmt.Sprintf("version: %s\tcommit: %s\tdate: %s",
Version, CommitID, BuildAt),
Action: func(c *cli.Context) error {
if c.Bool("help") {
return cli.ShowAppHelp(c)
Expand Down

0 comments on commit ac8e8dc

Please sign in to comment.