Switch year arg from int to string

This effectively allows for arbitrary copyright
years. For instance, 2018-2019.
This commit is contained in:
alex
2019-01-07 14:10:08 +01:00
parent b4fa55f138
commit f6c8b89ee5
4 changed files with 38 additions and 2 deletions

View File

@@ -48,7 +48,7 @@ var (
holder = flag.String("c", "Google LLC", "copyright holder")
license = flag.String("l", "apache", "license type: apache, bsd, mit")
licensef = flag.String("f", "", "license file")
year = flag.Int("y", time.Now().Year(), "year")
year = flag.String("y", fmt.Sprint(time.Now().Year()), "copyright year(s)")
)
func main() {