Skip to content

Commit

Permalink
mark phone flag as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoxiang committed Nov 27, 2024
1 parent bd21955 commit 99a5fe5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ func init() {
defaultDownloadFolder := filepath.Join(userHomeDir, config.GeektimeDownloaderFolder)

rootCmd.Flags().StringVarP(&phone, "phone", "u", "", "你的极客时间账号(手机号)")
rootCmd.Flags().MarkDeprecated("phone", "This flag is deprecated and will be removed in future versions. Please use '--gcid' and '--gcess' instead.")
rootCmd.Flags().MarkHidden("phone")
rootCmd.Flags().StringVar(&gcid, "gcid", "", "极客时间 cookie 值 gcid")
rootCmd.Flags().StringVar(&gcess, "gcess", "", "极客时间 cookie 值 gcess")
rootCmd.Flags().StringVarP(&downloadFolder, "folder", "f", defaultDownloadFolder, "专栏和视频课的下载目标位置")
Expand Down

0 comments on commit 99a5fe5

Please sign in to comment.