Skip to content

Commit

Permalink
add deprecated warning messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Songmu committed Dec 2, 2015
1 parent 9cd5fe9 commit c0f9fc2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,13 @@ func resolveConfig(argv []string) (*config.Config, *otherOptions) {

if *printVersion {
otherOptions.printVersion = true
logger.Warningf("-print option is deprecated. use subcommand instead")
return conf, otherOptions
}

if *runOnce {
otherOptions.runOnce = true
logger.Warningf("-once option is deprecated. use subcommand instead")
return conf, otherOptions
}

Expand Down

0 comments on commit c0f9fc2

Please sign in to comment.