#!/usr/bin/env perl

use strict;
use warnings;

use FindBin qw($Bin);
use lib "$Bin/../lib";

use Developer::Dashboard::CLI::OpenFile qw(run_open_file_command);

# main(@ARGV)
# Runs the standalone open-file executable.
# Input: command-line arguments from @ARGV.
# Output: prints matches or execs the configured editor, then exits.
run_open_file_command( args => \@ARGV );

__END__

=pod

=head1 NAME

open-file - standalone open-file command for Developer Dashboard

=head1 SYNOPSIS

  open-file [--print] [--line N] [--editor CMD] <file|scope> [pattern...]

=head1 DESCRIPTION

This is the lightweight standalone executable behind C<dashboard open-file>.

=cut
