#!perl
use strict;
use warnings;
use OptArgs qw/class_optargs/;

eval {
    my ( $class, $opts ) = OptArgs::class_optargs('App::bifsync');
    $class->new( opts => $opts )->run;
};

if ($@) {
    print STDERR $@;
    exit 1;
}

1;

__END__


=head1 NAME

=for bif-doc #sync

bifsync - synchronization server for bif hubs

=head1 VERSION

0.1.2 (2014-10-08)

=head1 SYNOPSIS

  bifsync [DIRECTORY] [OPTIONS...]

=head1 DESCRIPTION

The B<bifsync> command handles synchronization requests from L<bif>
clients.

Input is accepted on I<stdin>. Normal output is printed to I<stdout>.
Error messages are sent to I<stderr>.  Information and errors are
logged to the syslog.

An exit value of zero indicates success.

=head1 ARGUMENTS & OPTIONS

=over

=item DIRECTORY

A directory containing a bif repository. Defaults to F<default.bif>.

=item --debug, -d

Add debugging statements to I<stderr>. Syslog will not be used.

=back

=head1 SEE ALSO

L<bif>(1)

=head1 AUTHOR

Mark Lawrence E<lt>nomad@null.netE<gt>

=head1 COPYRIGHT AND LICENSE

Copyright 2013-2014 Mark Lawrence <nomad@null.net>

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 3 of the License, or (at your
option) any later version.

