=head1 NAME

enamlcompile - Byte compile Enaml source files

=head1 SYNOPSIS

B<enamlcompile> [-V I<VERSION_RANGE>] [-p I<PACKAGE>] [F<DIR_OF_FILE>]

=head1 DESCRIPTION

Wrapper around the C<enaml.compile> module to byte-compile Enaml files.

=head1 OPTIONS

=over 4

=item B<-h>, B<--help>

Print a help message and exit

=item B<-v>, B<--verbose>

Turn on verbose mode

=item B<-q>, B<--quiet>

Be quiet

=item B<-f>, B<--force>

Force the rebuild of the byte-code files, even if the files already exists

=item B<-p> I<PACKAGE>, B<--package=>I<PACKAGE>

Specify Debian package name to whose files should be bytecompiled

=item B<-V> I<VERSION_RANGE>

Force Enaml source files from private module directories to be bytecompiled
with the Python 3 versions matching the given range, regardless of the default
Python 3 version in the system.

If there are no other options, bytecompile all Enaml source files from public
module directories for the installed Python 3 versions that match the given
range.

I<VERSION_RANGE> examples:

=over 12

=item C<3.1>

version 3.1 only

=item C<3.1->

version 3.1 or newer

=item C<3.1-3.3>

version 3.1 or 3.2

=item C<-4.0>

all supported 3.X versions

=back

=back

=head1 EXAMPLES

  enamlcompile -p python3-foo

Byte-compile enaml files from package's public files. The Python version is
automatically detected from the file path.

  enamlcompile -p python3-foo /usr/share/foo

Byte-compile enaml files form package's private files for all installed Python
versions.

  enamlcompile -V 3.11 /usr/lib/python3/

Byte-compile all enaml files for Python 3.11.

  enamlcompile -V 3.9-3.11 /usr/lib/foo/bar.enaml

Byte-compile the given enaml file for Python 3.9 and Python 3.10 only.

  enamlcompile -V 3.9- /usr/lib/python3/

Byte-compile all enaml files for all installed Python version greater then 3.9.

=head1 AUTHOR

Alexander Sulfrian, 2025
