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

unshift( @ARGV, '--user-repo' );

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

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

1;

__END__

=encoding utf-8

=for bif-doc #intro

=head1 NAME

ub - distributed address book & task manager

=head1 VERSION

0.1.5_2 (2015-06-26)

=head1 SYNOPSIS

  ub COMMAND [...]

=head1 DESCRIPTION

B<ub> (user-bif) is a version of L<bif> that runs commands against your
user repository instead of the current local repository. It is
basically an alias for C<bif --user-repo>.

This is convenient for using bifu as a personal addressbook program, or
for managing personal projects that you want to access regardless of
which current directory your shell is in.

=over

=item F<$HOME/.local/share/bifu/>

User repository directory.

=back

=head1 SEE ALSO

L<bif>(1)

=head1 AUTHOR

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

=head1 COPYRIGHT AND LICENSE

Copyright 2013-2015 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.

