lib/dexter/client.rb in pgdexter-0.3.6 vs lib/dexter/client.rb in pgdexter-0.3.7

- old
+ new

@@ -35,13 +35,13 @@ end def parse_args(args) opts = Slop.parse(args) do |o| o.banner = %(Usage: - dexter [options] - -Options:) + dexter [options]) + o.separator "" + o.separator "Options:" o.boolean "--analyze", "analyze tables that haven't been analyzed in the past hour", default: false o.boolean "--create", "create indexes", default: false o.array "--exclude", "prevent specific tables from being indexed" o.string "--include", "only include specific tables" o.string "--input-format", "input format", default: "stderr" @@ -53,24 +53,23 @@ o.float "--min-time", "only process queries that have consumed a certain amount of DB time, in minutes", default: 0 o.integer "--min-cost-savings-pct", default: 50, help: false o.boolean "--pg-stat-activity", "use pg_stat_activity", default: false, help: false o.boolean "--pg-stat-statements", "use pg_stat_statements", default: false, help: false o.string "-s", "--statement", "process a single statement" - # separator must go here to show up correctly - slop bug? - o.separator "" - o.separator "Connection options:" o.on "-v", "--version", "print the version" do log Dexter::VERSION exit end o.on "--help", "prints help" do log o exit end - o.string "-U", "--username" - o.string "-d", "--dbname" - o.string "-h", "--host" - o.integer "-p", "--port" + o.separator "" + o.separator "Connection options:" + o.string "-d", "--dbname", "database name" + o.string "-h", "--host", "database host" + o.integer "-p", "--port", "database port" + o.string "-U", "--username", "database user" end arguments = opts.arguments options = opts.to_hash