diff options
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.") } |