#!perl

use strict;
use warnings;
use Browser::Open qw(open_browser);

die "Usage: $0 <url>\n" unless @ARGV;
open_browser($ARGV[0]);

# ABSTRACT: Open URL in a browser using Browser::Open
# PODNAME: open-browser

__END__

=pod

=encoding UTF-8

=head1 NAME

open-browser - Open URL in a browser using Browser::Open

=head1 VERSION

This document describes version 0.001 of open-browser (from Perl distribution App-BrowserOpenUtils), released on 2017-07-02.

=head1 SYNOPSIS

 % open-browser <url>

=head1 DESCRIPTION

This is a super-simple CLI script to open URL in a browser using
L<Browser::Open>.

=head1 HOMEPAGE

Please visit the project's homepage at L<https://metacpan.org/release/App-BrowserOpenUtils>.

=head1 SOURCE

Source repository is at L<https://github.com/perlancar/perl-App-BrowserOpenUtils>.

=head1 BUGS

Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=App-BrowserOpenUtils>

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.

=head1 AUTHOR

perlancar <perlancar@cpan.org>

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 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.

=cut
