# phpman > man > Pod::Perldoc::GetOptsOO

## NAME
    [Pod::Perldoc::GetOptsOO](https://www.chedong.com/phpMan.php/perldoc/Pod%3A%3APerldoc%3A%3AGetOptsOO/markdown) - Customized option parser for [Pod::Perldoc](https://www.chedong.com/phpMan.php/perldoc/Pod%3A%3APerldoc/markdown)

## SYNOPSIS
        use [Pod::Perldoc::GetOptsOO](https://www.chedong.com/phpMan.php/perldoc/Pod%3A%3APerldoc%3A%3AGetOptsOO/markdown) ();

        [Pod::Perldoc::GetOptsOO::getopts](https://www.chedong.com/phpMan.php/perldoc/Pod%3A%3APerldoc%3A%3AGetOptsOO%3A%3Agetopts/markdown)( $obj, \@args, $truth )
           or die "wrong usage";

## DESCRIPTION
    Implements a customized option parser used for [Pod::Perldoc](https://www.chedong.com/phpMan.php/perldoc/Pod%3A%3APerldoc/markdown).

    Rather like [Getopt::Std](https://www.chedong.com/phpMan.php/perldoc/Getopt%3A%3AStd/markdown)'s getopts:

    Call [Pod::Perldoc::GetOptsOO::getopts](https://www.chedong.com/phpMan.php/perldoc/Pod%3A%3APerldoc%3A%3AGetOptsOO%3A%3Agetopts/markdown)($object, \@ARGV, $truth)
    Given -n, if there's a opt_n_with, it'll call $object->opt_n_with( ARGUMENT ) (e.g., "-n foo" =>
    $object->opt_n_with('foo'). Ditto "-nfoo")
    Otherwise (given -n) if there's an opt_n, we'll call it $object->opt_n($truth) (Truth defaults
    to 1)
    Otherwise we try calling $object->handle_unknown_option('n') (and we increment the error count
    by the return value of it)
    If there's no handle_unknown_option, then we just warn, and then increment the error counter

    The return value of [Pod::Perldoc::GetOptsOO::getopts](https://www.chedong.com/phpMan.php/perldoc/Pod%3A%3APerldoc%3A%3AGetOptsOO%3A%3Agetopts/markdown) is true if no errors, otherwise it's false.

## SEE ALSO
    [Pod::Perldoc](https://www.chedong.com/phpMan.php/perldoc/Pod%3A%3APerldoc/markdown)

## COPYRIGHT AND DISCLAIMERS
    Copyright (c) 2002-2007 Sean M. Burke.

    This library is free software; you can redistribute it and/or modify it under the same terms as
    Perl itself.

    This program is distributed in the hope that it will be useful, but without any warranty;
    without even the implied warranty of merchantability or fitness for a particular purpose.

## AUTHOR
    Current maintainer: Mark Allen "<<mallen@cpan.org>>"

    Past contributions from: brian d foy "<<bdfoy@cpan.org>>" Adriano R. Ferreira
    "<<ferreira@cpan.org>>", Sean M. Burke "<<sburke@cpan.org>>"

