Skip Menu |

This queue is for tickets about the App-RegexpPatternUtils CPAN distribution.

Report information
The Basics
Id: 124833
Status: rejected
Priority: 0/
Queue: App-RegexpPatternUtils

People
Owner: Nobody in particular
Requestors: dr [...] jones.dk
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: fails to pass/parse arguments
Date: Tue, 20 Mar 2018 17:49:41 +0100
To: bug-App-RegexpPatternUtils [...] rt.cpan.org
From: Jonas Smedegaard <dr [...] jones.dk>
Hi, I am trying to use App::RegexpPatternUtils to test if dynamic patterns are resolved as intended, but these all produce default pattern: get-regexp-pattern-pattern Example::re3 get-regexp-pattern-pattern --gen-arg=variant=A Example::re3 get-regexp-pattern-pattern --gen-arg=variant=B Example::re3 Also, I suggest to expand SYNOPSIS to include an explicit example - I am genuinely uncertain if I guessed correctly that above is the intended syntax to use. Kind regards, and thanks for inventing DefHash and Regexp::Pattern, - Jonas -- * Jonas Smedegaard - idealist & Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ [x] quote me freely [ ] ask before reusing [ ] keep private
Download signature.asc
application/pgp-signature 833b

Message body not shown because it is not plain text.

Hi, Glad to hear you found my modules useful. Any of these should work: % get-regexp-pattern-pattern --gen-arg=variant=B Example::re3 % get-regexp-pattern-pattern Example::re3 --gen-arg variant=B % get-regexp-pattern-pattern Example::re3 --gen-args-json '{"variant":"B"}' They do on my computer, for example: % get-regexp-pattern-pattern Example/re3 --gen-arg variant=B qr/\d{3}-\d{2}-\d{5}/ % get-regexp-pattern-pattern Example/re3 --gen-arg variant=A qr/\d{3}-\d{3}/ If they don't, try updating Perinci::Sub::GetArgs::Argv. Or if they still don't work, try installing App::RegexpPatternUtils from a fresh perlbrew installation. Sorry, the dependencies currently get a little bit out of hand. Regards, On Tue, 20 Mar 2018 16:58:30 GMT, dr@jones.dk wrote: Show quoted text
> Hi, > > I am trying to use App::RegexpPatternUtils to test if dynamic patterns > are resolved as intended, but these all produce default pattern: > > get-regexp-pattern-pattern Example::re3 > get-regexp-pattern-pattern --gen-arg=variant=A Example::re3 > get-regexp-pattern-pattern --gen-arg=variant=B Example::re3 > > Also, I suggest to expand SYNOPSIS to include an explicit example - I am > genuinely uncertain if I guessed correctly that above is the intended > syntax to use. > > > Kind regards, and thanks for inventing DefHash and Regexp::Pattern, > > - Jonas >
Subject: Re: [rt.cpan.org #124833] fails to pass/parse arguments
Date: Wed, 21 Mar 2018 08:12:53 +0100
To: bug-App-RegexpPatternUtils [...] rt.cpan.org
From: Jonas Smedegaard <dr [...] jones.dk>
Quoting Perl Ancar via RT (2018-03-21 06:29:59) Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=124833 > > > Hi, > > Glad to hear you found my modules useful. > > Any of these should work: > > % get-regexp-pattern-pattern --gen-arg=variant=B Example::re3 > % get-regexp-pattern-pattern Example::re3 --gen-arg variant=B > % get-regexp-pattern-pattern Example::re3 --gen-args-json '{"variant":"B"}'
Thanks for confirming that my guess was correct - and for improving SYNOPSIS today :-D Show quoted text
> They do on my computer, for example: > > % get-regexp-pattern-pattern Example/re3 --gen-arg variant=B > qr/\d{3}-\d{2}-\d{5}/ > % get-regexp-pattern-pattern Example/re3 --gen-arg variant=A > qr/\d{3}-\d{3}/ > > If they don't, try updating Perinci::Sub::GetArgs::Argv. Or if they > still don't work, try installing App::RegexpPatternUtils from a fresh > perlbrew installation. Sorry, the dependencies currently get a little > bit out of hand.
Indeed a full rebuild of my local packages (I use Debian generally) worked. I guess you can close this as a non-bug then. Thanks again, - Jonas -- * Jonas Smedegaard - idealist & Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ [x] quote me freely [ ] ask before reusing [ ] keep private
Download signature.asc
application/pgp-signature 833b

Message body not shown because it is not plain text.