mirror of
https://github.com/nicksherron/bashhub-server.git
synced 2025-11-10 05:41:59 +08:00
cmd/transfer: progress bar flag bool was setup wrong
This commit is contained in:
parent
7e04081402
commit
5a15be867d
1 changed files with 2 additions and 2 deletions
|
|
@ -118,13 +118,13 @@ var (
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
rootCmd.AddCommand(transferCmd)
|
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(&srcUser, "src-user", "", "source username")
|
||||||
transferCmd.PersistentFlags().StringVar(&srcPass, "src-pass", "", "source password")
|
transferCmd.PersistentFlags().StringVar(&srcPass, "src-pass", "", "source password")
|
||||||
transferCmd.PersistentFlags().StringVar(&dstURL, "dst-url", "http://localhost:8080", "destination url")
|
transferCmd.PersistentFlags().StringVar(&dstURL, "dst-url", "http://localhost:8080", "destination url")
|
||||||
transferCmd.PersistentFlags().StringVar(&dstUser, "dst-user", "", "destination username")
|
transferCmd.PersistentFlags().StringVar(&dstUser, "dst-user", "", "destination username")
|
||||||
transferCmd.PersistentFlags().StringVar(&dstPass, "dst-pass", "", "destination password")
|
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")
|
transferCmd.PersistentFlags().IntVarP(&workers, "workers", "w", 10, "max number of concurrent requests")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue