Merge pull request #24 from IchBinLeoon/master

Add --version flag to cli root command
This commit is contained in:
ByteDream 2022-04-17 21:09:09 +02:00 committed by GitHub
commit 46331f4c7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,8 +27,9 @@ var (
)
var rootCmd = &cobra.Command{
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",
Use: "crunchyroll",
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,
SilenceUsage: true,