=encoding utf8 =head1 NAME =begin original Getopt::Long::Parser - Getopt::Long object-oriented interface =end original Getopt::Long::Parser - Getopt::Long オブジェクト指向インタフェース (訳注: (TBR)がついている段落は「みんなの自動翻訳@TexTra」による 機械翻訳です。) =head1 SYNOPSIS use Getopt::Long::Parser; my $p = Getopt::Long::Parser->new; $p->configure( %options ); if ( $p->getoptions( @options ) ) { ... } if ( $p->getoptionsfromarray( \@array, @options ) ) { ... } =begin original Configuration options can be passed to the constructor: =end original 構成オプションをコンストラクタに渡すことができます。 (TBR) my $p = Getopt::Long::Parser->new( config => [ %options ] ); =head1 DESCRIPTION =begin original C is an object-oriented interface to L. See its documentation for configuration and use. =end original Cは、Lへのオブジェクト指向インタフェースです。 構成と使用方法については、文書を参照してください。 (TBR) =begin original Note that C and C are not object-oriented. C emulates an object-oriented interface, which should be okay for most purposes. =end original CとCはオブジェクト指向ではないことに注意してください。 Cはオブジェクト指向インターフェースをエミュレートしますが、ほとんどの目的には問題ありません。 (TBR) =head1 CONSTRUCTOR my $p = Getopt::Long::Parser->new( %options ); =begin original The constructor takes an optional hash with parameters. =end original コンストラクタは、パラメータとともにオプションのハッシュを取ります。 (TBR) =over 4 =item config =begin original An array reference with configuration settings. See L for all possible settings. =end original 構成設定を含む配列参照。 可能なすべての設定については、Lを参照してください。 (TBR) =back =cut =head1 METHODS =begin original In the examples, C<$p> is assumed to be the result of a call to the constructor. =end original 例では、C<$p>はコンストラクターの呼び出しの結果であると想定されています。 (TBR) =head2 configure $p->configure( %settings ); =begin original Update the current config settings. See L for all possible settings. =end original 現在の構成設定を更新します。 可能なすべての設定については、Lを参照してください。 (TBR) =cut =head2 getoptionsfromarray my $res = $p->getoptionsfromarray( $aref, @opts ); =head2 getoptions my $res = $p->getoptions( @opts ); =begin original The same as C. =end original Cと同じです。 (TBR) =cut =head1 SEE ALSO L =head1 AUTHOR Johan Vromans =head1 COPYRIGHT AND DISCLAIMER =begin original This program is Copyright 1990,2015,2023 by Johan Vromans. This program is free software; you can redistribute it and/or modify it under the same terms as Perl. =end original このプログラムは、Johan VromansによってCopyright 1990,2015,2023で保護されています。 このプログラムはフリーソフトウェアです。 Perlと同じ条件で再配布および/または変更できます。 (TBR) =cut =begin meta Translate: SHIRAKATA Kentaro Status: in progress =end meta