Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 81512
Status: open
Priority: 0/
Queue: App-Cmd

People
Owner: Nobody in particular
Requestors: MMAURICE [...] cpan.org
Cc:
AdminCc:

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



Subject: global options and usage description
Download (untitled) / with headers
text/plain 514b
I am trying to figure out how to use global options (global_opt_spec, global_options, set_global_options). Some pod would be nice. I am trying to read dist::zilla as an example code.There is something that I consider a bug. $dzil commands dzil [-Iv] [long options...] <command> -v --verbose log additional output -I --lib-inc additional @INC dirs But dzil/App::Cmd doesn't accept options just after dzil/the script. In other words: $dzil build -v #works $dzil -v build #doesn't work
Download (untitled) / with headers
text/plain 574b
On 2012-11-28 10:39:24, MMAURICE wrote: Show quoted text
> I am trying to figure out how to use global options (global_opt_spec, > global_options, set_global_options). Some pod would be nice. I am trying > to read dist::zilla as an example code.There is something that I consider > a bug.
Global options are a mess, unfortunately. I think the patch adding them was greatly under-reviewed. Show quoted text
> $dzil build -v #works > $dzil -v build #doesn't work
This is a related, but dumb bug. -v takes 0 or more arguments. When you say "-v build" it think that build is an argument to -v. -- rjbs


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.