theory / tap-parser-sourcehandler-pgtap

TAP::Parser::SourceHandler::pgTAP
http://search.cpan.org/dist/TAP::Parser::SourceHandler::pgTAP
11 stars 13 forks source link

Silence "Duplicate specification" warnings - better handling #40

Open tyboro opened 5 months ago

tyboro commented 5 months ago

more explicit way to silence 'Duplicate specification' warnings also, on my Windows machine, I no longer get the following:

C:\Users\mark>pg_prove --help
Duplicate specification "psql-bin|b=s" for option "b"
Duplicate specification "host|h=s" for option "h"
Duplicate specification "port|p=s" for option "p"
Duplicate specification "pset|P=s%" for option "P"
Duplicate specification "schema|s=s" for option "s"
Duplicate specification "version|V" for option "version"
Duplicate specification "version|V" for option "V"
Duplicate specification "help|H|?" for option "help"
Duplicate specification "help|H|?" for option "H"
Duplicate specification "help|H|?" for option "?"
Duplicate specification "man|m" for option "man"
Duplicate specification "man|m" for option "m"
Usage:
      pg_prove tests/
      pg_prove --dbname template1 test*.sql
      pg_prove -d testdb --runtests
...
theory commented 5 months ago

Looks good, but why on earth are you getting those warnings? Seems odd.

tyboro commented 5 months ago

yeah, I was puzzled by the warnings... but then, I got annoyed just enough to find a way to suppress them ;-) btw, I run Windows 10, with a fresh Strawberry install

theory commented 5 months ago

I don't have a particular objection to this workaround, but I'm curious what the source is.