The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
#!/usr/bin/perl
package Foo;

use Moose;
with 'MooseX::Getopt::Usage';
with 'MooseX::Getopt::Usage::Role::Man';

sub getopt_usage_config {
    return (
        format => "usage: %c <options>",
        usage_sections => ["SYNOPSIS"],
        headings => 0
    );
}

package main;
Foo->new_with_options;