<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">NAME
    Perinci::CmdLine::POD - Generate POD for Perinci::CmdLine-based CLI
    script

VERSION
    This document describes version 0.022 of Perinci::CmdLine::POD (from
    Perl distribution Perinci-CmdLine-POD), released on 2021-05-07.

SYNOPSIS
    Please see the included CLI script gen-pod-for-pericmd-script.

FUNCTIONS
  gen_pod_for_pericmd_script
    Usage:

     gen_pod_for_pericmd_script(%args) -&gt; [status, msg, payload, meta]

    Generate POD for Perinci::CmdLine-based CLI script.

    This utility can accept either a path to a Perinci::CmdLine-based CLI
    script, upon which the arguments to Perinci::CmdLine constructor will be
    extracted using a script dumper (Perinci::CmdLine::Dump), or a set of
    arguments to specify Perinci::CmdLine constructor arguments directly
    (e.g. "url", "summary", "subcommands", etc).

    This function is not exported by default, but exportable.

    Arguments ('*' denotes required arguments):

    *   common_opts =&gt; *hash*

        Set `common_opts` attribute, see Perinci::CmdLine::Base.

    *   completer_script =&gt; *str*

        Script name for shell completion.

        A special value of ":self" means this script can complete itself.

        Without specifying this option, the COMPLETION POD section will not
        be generated.

    *   config_dirs =&gt; *array[dirname]*

        Set `config_dirs` attribute, see Perinci::CmdLine::Base.

    *   config_filename =&gt; *str|array[str]|array[hash]*

        Set `config_filename` attribute, see Perinci::CmdLine::Base.

    *   default_subcommand =&gt; *str*

        Set `default_subcommand` attribute, see Perinci::CmdLine::Base.

    *   env_name =&gt; *str*

        Set `env_name` attribute, see Perinci::CmdLine::Base.

    *   gen_subcommand =&gt; *str*

        Only generate POD for this subcommand.

        See "--gen-subcommands".

    *   gen_subcommands =&gt; *bool* (default: 1)

        Whether to generate POD for subcommands.

        If you want to generate separate POD/manpage for each subcommand,
        you can use this option for the main CLI POD, then generate each
        subcommand's POD with the "--gen-subcommand=SUBCOMMAND_NAME" option.

    *   libs =&gt; *array[dirname]*

        Extra libraries to pass to perl via -I.

    *   per_arg_json =&gt; *bool* (default: 1)

        Set `per_arg_json` attribute, see Perinci::CmdLine::Base.

    *   per_arg_yaml =&gt; *bool* (default: 1)

        Set `per_arg_yaml` attribute, see Perinci::CmdLine::Base.

    *   program_name =&gt; *str*

        Set `program_name` attribute, see Perinci::CmdLine::Base.

    *   read_config =&gt; *bool* (default: 1)

        Set `read_config` attribute, see Perinci::CmdLine::Base.

    *   read_env =&gt; *bool* (default: 1)

        Set `read_env` attribute, see Perinci::CmdLine::Base.

    *   script =&gt; *filename*

        Path to script.

    *   subcommands =&gt; *hash*

        Set `subcommands` attribute, see Perinci::CmdLine::Base.

    *   summary =&gt; *str*

        Set `summary` attribute, see Perinci::CmdLine::Base.

    *   url =&gt; *str*

        Set `url` attribute, see Perinci::CmdLine::Base for more details.

    Returns an enveloped result (an array).

    First element (status) is an integer containing HTTP status code (200
    means OK, 4xx caller error, 5xx function error). Second element (msg) is
    a string containing error message, or 'OK' if status is 200. Third
    element (payload) is optional, the actual result. Fourth element (meta)
    is called result metadata and is optional, a hash that contains extra
    information.

    Return value: (any)

HOMEPAGE
    Please visit the project's homepage at
    &lt;https://metacpan.org/release/Perinci-CmdLine-POD&gt;.

SOURCE
    Source repository is at
    &lt;https://github.com/perlancar/perl-Perinci-CmdLine-POD&gt;.

BUGS
    Please report any bugs or feature requests on the bugtracker website
    &lt;https://rt.cpan.org/Public/Dist/Display.html?Name=Perinci-CmdLine-POD&gt;

    When submitting a bug or request, please include a test-file or a patch
    to an existing test-file that illustrates the bug or desired feature.

SEE ALSO
    Perinci::CmdLine

AUTHOR
    perlancar &lt;perlancar@cpan.org&gt;

COPYRIGHT AND LICENSE
    This software is copyright (c) 2021, 2020, 2019, 2017 by
    perlancar@cpan.org.

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

</pre></body></html>