diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-07-03 22:56:40 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-07-03 22:56:40 +0530 |
commit | 2b1440f22897914c4a1836de8dd0c64972e10650 (patch) | |
tree | 109adf90899065345840684b867375372b6c58bb /cmd | |
parent | 6ac3bd9b1cc4b9c897e8e9623313924b80f6a4b2 (diff) |
removed copyright notice and other messages from rootcmd
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/root.go | 21 | ||||
-rw-r--r-- | cmd/version.go | 2 |
2 files changed, 7 insertions, 16 deletions
diff --git a/cmd/root.go b/cmd/root.go index 085dafa..c1e939c 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -24,23 +24,15 @@ import ( "github.com/spf13/cobra" ) -var queryOnlyMode bool -var mangaMode bool +var ( + queryOnlyMode , mangaMode bool + entryId int +) var rootCmd = &cobra.Command{ Use: "macli", Short: "macli - Unofficial CLI-Based MyAnimeList Client.", - Long: "macli is an unofficial MyAnimeClient for use inside the terminal.\n" + - "\n" + - "\x1b[34mmacli Copyright (C) 2022 Vidhu Kant Sharma <vidhukant@vidhukant.xyz>\n" + - "This program comes with ABSOLUTELY NO WARRANTY;\n" + - "This is free software, and you are welcome to redistribute it\n" + - "under certain conditions; For details refer to the GNU General Public License.\n" + - "You should have received a copy of the GNU General Public License\n" + - "along with this program. If not, see <https://www.gnu.org/licenses/>.\x1b[0m\n" + - "\n" + - "\x1b[35mPlease report any bugs on the GitHub page: https://github.com/MikunoNaka/macli\n" + - "or through email: vidhukant@vidhukant.xyz\x1b[0m\n", + Long: "macli is an unofficial MyAnimeClient for use inside the terminal.", } func Execute() { @@ -51,6 +43,5 @@ func Execute() { } func init() { - rootCmd.PersistentFlags().BoolVarP(&mangaMode, "manga", "m", false, "Use manga mode") - rootCmd.PersistentFlags().BoolVarP(&queryOnlyMode, "query", "q", false, "Query only (don't update data)") + rootCmd.PersistentFlags().IntVar(&entryId, "id", -1, "Manually specify the ID of anime/manga (overrides search)") } diff --git a/cmd/version.go b/cmd/version.go index c89866b..54391fc 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -24,7 +24,7 @@ import ( "github.com/spf13/cobra" ) -var version string = "v1.5.4" +var version string = "v1.6.0" var versionCmd = &cobra.Command { Use: "version", |