Skip to content

Commit

Permalink
Corrected the help description
Browse files Browse the repository at this point in the history
  • Loading branch information
noborus committed Jul 14, 2021
1 parent 7444837 commit f32e0b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# pgsp - PostgreSQL Stat Progress Monitor
# pgsp - PostgreSQL Stat Progress CLI Monitor

A CUI tool that monitors PostgreSQL's pg_stat_progress*.
Supported progress reports are ANALYZE, CLUSTER, CREATE INDEX, VACUUM, and BASE_BACKUP.
See [Progress Reporting](https://www.postgresql.org/docs/current/progress-reporting.html) for more information.

![pgsp.png](https://raw.githubusercontent.com/noborus/pgsp/master/docs/pgsp.png)

Expand Down Expand Up @@ -41,8 +43,8 @@ Usage:
pgsp [flags]

Flags:
-a, --AfterCompletion int Number of seconds to display after completion(Seconds) (default 10)
-i, --Interval float Number of seconds to display after completion(Seconds) (default 0.5)
-a, --AfterCompletion int Time to display after completion(Seconds) (default 10)
-i, --Interval float Update interval(Seconds) (default 0.5)
--config string config file (default is $HOME/.pgsp.yaml)
--dsn string PostgreSQL data source name
-f, --fullscreen Display in Full Screen
Expand Down
4 changes: 2 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ func init() {
_ = viper.BindPFlag("dsn", rootCmd.PersistentFlags().Lookup("dsn"))

var afterCompletion int
rootCmd.PersistentFlags().IntVarP(&afterCompletion, "AfterCompletion", "a", 10, "Number of seconds to display after completion(Seconds)")
rootCmd.PersistentFlags().IntVarP(&afterCompletion, "AfterCompletion", "a", 10, "Time to display after completion(Seconds)")
_ = viper.BindPFlag("AfterCompletion", rootCmd.PersistentFlags().Lookup("AfterCompletion"))

var interval float64
rootCmd.PersistentFlags().Float64VarP(&interval, "Interval", "i", 0.5, "Number of seconds to display after completion(Seconds)")
rootCmd.PersistentFlags().Float64VarP(&interval, "Interval", "i", 0.5, "Update interval(Seconds)")
_ = viper.BindPFlag("Interval", rootCmd.PersistentFlags().Lookup("Interval"))

var fullscreen bool
Expand Down

0 comments on commit f32e0b3

Please sign in to comment.