Skip to content

Commit

Permalink
Merge pull request texworld#93 from nschloe/help
Browse files Browse the repository at this point in the history
Help page
  • Loading branch information
nschloe authored Dec 7, 2017
2 parents 0a451cc + b36ada8 commit 835223f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion betterbib/__about__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#

__version__ = '3.1.2'
__version__ = '3.1.3'
__author__ = 'Nico Schlömer'
__author_email__ = '[email protected]'
__website__ = 'https://github.com/nschloe/betterbib'
Expand Down
22 changes: 22 additions & 0 deletions tools/betterbib
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
#!/bin/sh

usage="Usage: $(basename "$0") in.bib out.bib
-h show this help list"

if [ -z "$1" ] || [ -z "$2" ]; then
echo "$usage"
exit 1
fi

while getopts ':h:' option; do
case "$option" in
h) echo "$usage"
exit 0
;;
\?) printf "illegal option: -%s\n\n" "$OPTARG" >&2
echo "$usage" >&2
exit 1
;;
esac
done
shift $((OPTIND - 1))

betterbib-sync "$1" | betterbib-journal-abbrev | betterbib-format -b - "$2"

0 comments on commit 835223f

Please sign in to comment.