diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-05-03 15:53:53 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-05-03 15:53:53 +0200 |
commit | 40f7f691d4143c7be4dc72babb2b5288cbfef45c (patch) | |
tree | 34bd8c439035a55336e4a5b06145033d282888e7 /main.go | |
parent | 416be8872c0066a84a3e03622bb3dbb7c5544eea (diff) | |
download | feed2imap-go-40f7f691d4143c7be4dc72babb2b5288cbfef45c.tar.gz feed2imap-go-40f7f691d4143c7be4dc72babb2b5288cbfef45c.tar.bz2 feed2imap-go-40f7f691d4143c7be4dc72babb2b5288cbfef45c.zip |
Explicit version info
Diffstat (limited to '')
-rw-r--r-- | main.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -10,6 +10,7 @@ import ( "github.com/Necoro/feed2imap-go/internal/imap" "github.com/Necoro/feed2imap-go/pkg/config" "github.com/Necoro/feed2imap-go/pkg/log" + "github.com/Necoro/feed2imap-go/pkg/version" ) var printVersion = flag.Bool("version", false, "print version and exit") @@ -51,7 +52,7 @@ func processFeed(feed *feed.Feed, client *imap.Client, dryRun bool) { func run() error { flag.Parse() if *printVersion { - println("Feed2Imap-Go, version " + config.Version()) + println("Feed2Imap-Go, version " + version.Version()) return nil } |