diff options
author | Vidhu Kant Sharma <vidhukant@protonmail.ch> | 2022-06-13 19:51:47 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@protonmail.ch> | 2022-06-13 19:51:47 +0530 |
commit | 5ac21806f34a7c88d2685420d53cbd585f4b4f3d (patch) | |
tree | fa8a1955702a46ba8aaa4d2069551cc8f4433c39 /cmd/root.go | |
parent | c37e75f4723f745edd54a3dcd57f3ecf2aab4c83 (diff) |
updating episodes now
Diffstat (limited to 'cmd/root.go')
-rw-r--r-- | cmd/root.go | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/cmd/root.go b/cmd/root.go index 9e86905..b9967b4 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -24,21 +24,11 @@ import ( "github.com/spf13/cobra" ) -// rootCmd represents the base command when called without any subcommands var rootCmd = &cobra.Command{ Use: "macli", - Short: "Unofficial CLI-Based MyAnimeList Client.", - Long: `Description to be added later. -Help: - Even I don't know how to use it as of now... -`, - // Uncomment the following line if your bare application - // has an action associated with it: - // Run: func(cmd *cobra.Command, args []string) { }, + Short: "macli - Unofficial CLI-Based MyAnimeList Client.", } -// Execute adds all child commands to the root command and sets flags appropriately. -// This is called by main.main(). It only needs to happen once to the rootCmd. func Execute() { err := rootCmd.Execute() if err != nil { @@ -47,11 +37,5 @@ func Execute() { } func init() { - // Here you will define your flags and configuration settings. - // Cobra supports persistent flags, which, if defined here, - // will be global for your application. - - // Cobra also supports local flags, which will only run - // when this action is called directly. - rootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") + rootCmd.PersistentFlags().BoolP("manga", "m", false, "Use Manga Mode.") } |