Skip to content

Commit

Permalink
refactor!(dl): rename urls flag to url
Browse files Browse the repository at this point in the history
  • Loading branch information
iyear committed Sep 22, 2022
1 parent f151b22 commit 7c00b7f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/dl/dl.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ var Cmd = &cobra.Command{
}

func init() {
Cmd.Flags().StringSliceVarP(&urls, consts.FlagDlUrls, "u", []string{}, "telegram message links to be downloaded")
Cmd.Flags().StringSliceVarP(&urls, consts.FlagDlUrl, "u", []string{}, "telegram message links to be downloaded")
}
4 changes: 2 additions & 2 deletions docs/command/tdl_dl.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ tdl dl -n iyear --proxy socks5://localhost:1080 -u https://t.me/tdl/1 -u https:/
### Options

```
-h, --help help for dl
-u, --urls strings telegram message links to be downloaded
-h, --help help for dl
-u, --url strings telegram message links to be downloaded
```

### Options inherited from parent commands
Expand Down
2 changes: 1 addition & 1 deletion pkg/consts/flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ const (
FlagUpPath = "path"
FlagUpExcludes = "excludes"
FlagLoginDesktop = "desktop"
FlagDlUrls = "urls"
FlagDlUrl = "url"
)

0 comments on commit 7c00b7f

Please sign in to comment.