App-INIUtils
view release on metacpan or search on metacpan
lib/App/INIUtils.pm view on Meta::CPAN
},
);
our %arg_inplace = (
inplace => {
summary => 'Modify file in-place',
schema => ['bool', is=>1],
description => <<'_',
Note that this can only be done if you specify an actual file and not STDIN.
Otherwise, an error will be thrown.
_
},
);
sub _check_inplace {
my $args = shift;
if ($args->{inplace}) {
die [412, "To use in-place editing, please supply an actual file"]
if @{ $args->{-cmdline_srcfilenames_ini} // []} == 0;
script/delete-ini-key view on Meta::CPAN
=item B<--all>
Delete all occurrences instead of just the first.
=item B<--inplace>
Modify file in-place.
Note that this can only be done if you specify an actual file and not STDIN.
Otherwise, an error will be thrown.
=item B<--key>=I<s>*
(No description)
Can also be specified as the 3rd command-line argument.
=item B<--section>=I<s>*
script/delete-ini-section view on Meta::CPAN
=item B<--all>
Delete all occurrences instead of just the first.
=item B<--inplace>
Modify file in-place.
Note that this can only be done if you specify an actual file and not STDIN.
Otherwise, an error will be thrown.
=item B<--section-pattern>=I<s>
Regex to match section name.
=item B<--section>=I<s>
Section name.
script/insert-ini-key view on Meta::CPAN
=item B<--ignore>
When key already exists, do nothing.
=item B<--inplace>
Modify file in-place.
Note that this can only be done if you specify an actual file and not STDIN.
Otherwise, an error will be thrown.
=item B<--key>=I<s>*
(No description)
Can also be specified as the 3rd command-line argument.
=item B<--linum>=I<s>
script/insert-ini-section view on Meta::CPAN
=item B<--ignore>
When section already exists, do nothing.
=item B<--inplace>
Modify file in-place.
Note that this can only be done if you specify an actual file and not STDIN.
Otherwise, an error will be thrown.
=item B<--linum>=I<s>
Put section line at a specific line number (line number starts from 1).
=item B<--section>=I<s>*
(No description)
( run in 0.888 second using v1.01-cache-2.11-cpan-496ff517765 )