Setting default behavior to show only active recoveries.

This commit is contained in:
Justin Fudally 2019-04-02 16:30:03 -05:00
Родитель 9d1f588c8b
Коммит beb8041c6b
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -13,7 +13,7 @@ var activeOnly bool
func init() {
cmdShards.Flags().StringSliceVarP(&nodesToCheck, "nodes", "n", []string{}, "Elasticsearch node(s) to get shard information from")
cmdShardsRecovery.Flags().StringSliceVarP(&nodesToCheck, "nodes", "n", []string{}, "Elasticsearch node(s) to get shard information from")
cmdShardsRecovery.Flags().BoolVar(&activeOnly, "active", false, "Only display active recoveries")
cmdShardsRecovery.Flags().BoolVar(&activeOnly, "active", true, "Only display active recoveries")
cmdShards.AddCommand(cmdShardsRecovery)
rootCmd.AddCommand(cmdShards)