Skip Menu |

This queue is for tickets about the ExtUtils-ModuleMaker CPAN distribution.

Report information
The Basics
Id: 125266
Status: resolved
Priority: 0/
Queue: ExtUtils-ModuleMaker

People
Owner: Nobody in particular
Requestors: jkeenan [...] pobox.com
Cc:
AdminCc:

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



Subject: 'modulemaker -h' fails to display help message; launches interactive mode
Date: Thu, 3 May 2018 15:28:13 -0400
To: bug-ExtUtils-ModuleMaker [...] rt.cpan.org
From: James E Keenan <jkeenan [...] pobox.com>
Currently: ##### $ modulemaker -h ------------------------ modulemaker: Main Menu Feature Current Value N - Name of module '' S - Abstract 'Module abstract (<= 44 characters) goes here' A - Author information L - License 'perl' D - Directives B - Build system 'ExtUtils::MakeMaker' G - Generate module H - Generate module; save selections as defaults X - Exit immediately Please choose which feature you would like to edit: ##### $ modulemaker -Ih NAME is required modulemaker [-CIPVch] [-v version] [-n module_name] [-a abstract] [-u author_name] [-p author_CPAN_ID] [-o organization] [-w author_website] [-e author_e-mail] [-l license_name] [-b build_system] [-s save_selections_as_defaults ] Currently Supported Features -a Specify (in quotes) an abstract for this extension -b Specify a build system for this extension -c Flag for compact base directory name -C Omit creating the Changes file, add HISTORY heading to stub POD -d Call methods which override default methods from this module -e Specify author's e-mail address -h Display this help message -I Disable INTERACTIVE mode, the command line arguments better be complete -l Specify a license for this extension -n Specify a name to use for the extension (required) -o Specify (in quotes) author's organization -p Specify author's CPAN ID -P Omit the stub POD section -q Flag to omit a constructor from module -r Specify permissions -s Flag to save selections as new personal default values -u Specify (in quotes) author's name -v Specify a version number for this extension -V Flag for verbose messages during module creation -w Specify author's web site modulemaker version: 0.57 ExtUtils::ModuleMaker version: 0.57 at /home/jkeenan/perl5/perlbrew/perls/perl-5.26.0/lib/site_perl/5.26.0/ExtUtils/ModuleMaker/Initializers.pm line 193. ##### What a user normally expects from providing a '-h' command-line switch is a help message as in the second call above. Make it so, but fix what appears to be a warning at the end of the output.
On Thu May 03 15:28:25 2018, jkeenan@pobox.com wrote: Show quoted text
> Currently: > > ##### > $ modulemaker -h > > ------------------------ > > modulemaker: Main Menu > > Feature Current Value > N - Name of module '' > S - Abstract 'Module abstract (<= 44 characters) > goes > here' > A - Author information > L - License 'perl' > D - Directives > B - Build system 'ExtUtils::MakeMaker' > > G - Generate module > H - Generate module; > save selections as defaults > > X - Exit immediately > > Please choose which feature you would like to edit: > ##### > $ modulemaker -Ih > NAME is required > > modulemaker [-CIPVch] [-v version] [-n module_name] [-a abstract] > [-u author_name] [-p author_CPAN_ID] [-o organization] > [-w author_website] [-e author_e-mail] > [-l license_name] [-b build_system] [-s > save_selections_as_defaults ] > > Currently Supported Features > -a Specify (in quotes) an abstract for this extension > -b Specify a build system for this extension > -c Flag for compact base directory name > -C Omit creating the Changes file, add HISTORY heading to stub > POD > -d Call methods which override default methods from this module > -e Specify author's e-mail address > -h Display this help message > -I Disable INTERACTIVE mode, the command line arguments better > be > complete > -l Specify a license for this extension > -n Specify a name to use for the extension (required) > -o Specify (in quotes) author's organization > -p Specify author's CPAN ID > -P Omit the stub POD section > -q Flag to omit a constructor from module > -r Specify permissions > -s Flag to save selections as new personal default values > -u Specify (in quotes) author's name > -v Specify a version number for this extension > -V Flag for verbose messages during module creation > -w Specify author's web site > > modulemaker version: 0.57 > ExtUtils::ModuleMaker version: 0.57 > at > /home/jkeenan/perl5/perlbrew/perls/perl- > 5.26.0/lib/site_perl/5.26.0/ExtUtils/ModuleMaker/Initializers.pm > line 193. > ##### > > What a user normally expects from providing a '-h' command-line switch > is a help message as in the second call above. Make it so, but fix > what > appears to be a warning at the end of the output.
Fixed with: ##### commit 28e6dae7fd759f285db804ff40c3455f4d5074a2 Author: James E Keenan <jkeenan@cpan.org> AuthorDate: Fri May 4 09:48:39 2018 -0400 Commit: James E Keenan <jkeenan@cpan.org> CommitDate: Fri May 4 09:48:39 2018 -0400 RTC 125266: Ensure that -h switch takes precedence over INTERACTIVE mode. Invoking 'modulemaker -h' was launching the interactive mode -- not what a user would expect when requesting a help message. Discussed in https://rt.cpan.org/Ticket/Display.html?id=125266 Now, '-h' displays Usage message and exits cleanly. ##### Will appear in next CPAN release.