Skip to content

Commit

Permalink
cmd/transfer: progress bar flag bool was setup wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksherron committed Feb 12, 2020
1 parent 7e04081 commit 5a15be8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@ var (

func init() {
rootCmd.AddCommand(transferCmd)
transferCmd.PersistentFlags().StringVar(&srcURL, "src-url", "https://bashhub.com", "source url")
transferCmd.PersistentFlags().StringVar(&srcURL, "src-url", "https://bashhub.com", "source url ")
transferCmd.PersistentFlags().StringVar(&srcUser, "src-user", "", "source username")
transferCmd.PersistentFlags().StringVar(&srcPass, "src-pass", "", "source password")
transferCmd.PersistentFlags().StringVar(&dstURL, "dst-url", "http://localhost:8080", "destination url")
transferCmd.PersistentFlags().StringVar(&dstUser, "dst-user", "", "destination username")
transferCmd.PersistentFlags().StringVar(&dstPass, "dst-pass", "", "destination password")
transferCmd.PersistentFlags().BoolVarP(&progress, "progress", "p", false, "show progress bar")
transferCmd.PersistentFlags().BoolVarP(&progress, "quiet", "q", false, "don't show progress bar")
transferCmd.PersistentFlags().IntVarP(&workers, "workers", "w", 10, "max number of concurrent requests")
}

Expand Down

0 comments on commit 5a15be8

Please sign in to comment.