# and is released under the terms of the GNU GPL version 3, or any
# later version, at your option. See the file README and COPYING for
# more information.
-# Copyright 2013 by Don Armstrong <don@donarmstrong.com>.
+# Copyright 2014 by Don Armstrong <don@donarmstrong.com>.
use warnings;
Options:
--bibtex, -b bibtex file to look up key in
--bibtex-cache, -c bibtex cache file
+ --build-cache, -B build cache using bibtex files
--pdf-dir pdf directory
--pdfviewer, -p pdf viewer to use
--debug, -d debugging level (Default 0)
);
GetOptions(\%options,
+ 'build_cache|build-cache|B!',
+ 'bibtex|b=s',
+ 'bibtex_cache|bibtex-cache|c=s',
+ 'pdfviewer|p=s',
'debug|d+','help|h|?','man|m');
pod2usage() if $options{help};
$DEBUG = $options{debug};
my @USAGE_ERRORS;
-if (1) {
- push @USAGE_ERRORS,"You must pass something";
+if (not exists $options{bibtex} and
+ not exists $options{bibtex_cache}) {
+ push @USAGE_ERRORS,
+ "You must give at least one of --bibtex".
+ "or --bibtex-cache";
}
pod2usage(join("\n",@USAGE_ERRORS)) if @USAGE_ERRORS;
+sub parse_bibtex_file {
+
+}
+sub initialize_database {
+ my
+}
__END__