Skip to content

Commit

Permalink
Merge pull request #6 from meilirensheng2020/refact-dev
Browse files Browse the repository at this point in the history
[fix][stats] Fix help prompt
  • Loading branch information
ketor authored Jan 3, 2025
2 parents 077c441 + 5016d91 commit 15cfc93
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/cli/command/stats/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,19 +107,19 @@ func NewStatsCommand() *cobra.Command {
basecmd.FinalDingoCmd{
Use: "stats mountPoint",
Short: "show real time performance statistics of dingofs",
Example: `dingo fs stats /mnt/dingofs
Example: `dingo stats /mnt/dingofs
# fuse metrics
dingo fs stats /mnt/dingofs --schema f
dingo stats /mnt/dingofs --schema f
# s3 metrics
dingo fs stats /mnt/dingofs --schema o
dingo stats /mnt/dingofs --schema o
# More metrics
dingo fs stats /mnt/dingofs --verbose
dingo stats /mnt/dingofs --verbose
# Show 3 times
dingo fs stats /mnt/dingofs --count 3`,
dingo stats /mnt/dingofs --count 3`,
},
}
return basecmd.NewFinalDingoCli(&statsCmd.FinalDingoCmd, statsCmd)
Expand All @@ -136,7 +136,7 @@ func (statsCmd *StatsCommand) Init(cmd *cobra.Command, args []string) error {
if len(args) < 1 {
return errors.New(`ERROR: This command requires mountPoint
USAGE:
dingo fs stats mountPoint [Flags]`)
dingo stats mountPoint [Flags]`)
}
return nil
}
Expand Down

0 comments on commit 15cfc93

Please sign in to comment.