Skip to content

Commit 2f3cc4a

Browse files
committed
Raise version
1 parent 87a096f commit 2f3cc4a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

goreplace.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,8 @@ func searchFilesInPath(path string, callback func(os.FileInfo, string)) {
357357
func handleSpecialCliOptions(args []string) ([]string) {
358358
// --version
359359
if (opts.ShowVersion) {
360-
fmt.Printf("goreplace version %s\n", Version)
360+
fmt.Println(fmt.Sprintf("goreplace version %s", Version))
361+
fmt.Println(fmt.Sprintf("Copyright (C) 2017 %s", Author))
361362
os.Exit(0)
362363
}
363364

tests/main.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Usage:
1010
[1]
1111
$ goreplace -V
1212
goreplace version [0-9]+.[0-9]+.[0-9]+ (re)
13+
Copyright \(C\) 20[0-9]{2} webdevops.io (re)
1314

1415

1516
Testing ignoring missing arguments:

0 commit comments

Comments
 (0)