From d17e8369ca11e7816772d074b284933adbba38e4 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 3 Oct 2014 21:58:31 +0200 Subject: format optional arguments in square brakets --- t/Monitoring-Plugin-Getopt-04.t | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 't') diff --git a/t/Monitoring-Plugin-Getopt-04.t b/t/Monitoring-Plugin-Getopt-04.t index 9b51883..2c91e23 100644 --- a/t/Monitoring-Plugin-Getopt-04.t +++ b/t/Monitoring-Plugin-Getopt-04.t @@ -118,8 +118,8 @@ like($@, qr/\n -H, --hostname=ADDRESS\n Hostname\n/, 'hostname ok'); like($@, qr/\n --avatar=AVATAR\n Avatar\n/, 'avatar ok'); like($@, qr/\n --disk=BYTES\n Disk limit in BYTES\n --disk=PERCENT%\n Disk limit in PERCENT\n --disk=STRING\n Disk limit in FOOBARS \(Default: 1024\)\n/, 'disk multiline ok'); like($@, qr/\n --limit=STRING\n Limit in BYTES\n --limit=PERCENT%\n Limit in PERCENT\n/, 'limit multiline ok'); -like($@, qr/\n -d, --dirport=INTEGER/, 'dirport ok'); -like($@, qr/\n -s, --enablesomething=STRING/, 'enablesomething ok'); -like($@, qr/\n -T, --testtimeout=INTEGER/, 'testtimeout ok'); -like($@, qr/\n -v, --verbosity=INTEGER/, 'verbosity ok'); +like($@, qr/\n -d, --dirport\[=INTEGER\]/, 'dirport ok'); +like($@, qr/\n -s, --enablesomething\[=STRING\]/, 'enablesomething ok'); +like($@, qr/\n -T, --testtimeout\[=INTEGER\]/, 'testtimeout ok'); +like($@, qr/\n -v, --verbosity\[=INTEGER\]/, 'verbosity ok'); #print $@; -- cgit v1.2.3-74-g34f1