Add version to cli root command

This commit is contained in:
IchBinLeoon 2022-04-17 18:57:42 +02:00
parent 543b9c3668
commit 4b5b187730

View file

@ -27,8 +27,9 @@ var (
) )
var rootCmd = &cobra.Command{ var rootCmd = &cobra.Command{
Use: "crunchyroll", Use: "crunchyroll",
Short: "Download crunchyroll videos with ease. See the wiki for details about the cli and library: https://github.com/ByteDream/crunchyroll-go/wiki", Version: Version,
Short: "Download crunchyroll videos with ease. See the wiki for details about the cli and library: https://github.com/ByteDream/crunchyroll-go/wiki",
SilenceErrors: true, SilenceErrors: true,
SilenceUsage: true, SilenceUsage: true,