diff options
Diffstat (limited to 'scripts/reg')
-rwxr-xr-x | scripts/reg | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/reg b/scripts/reg new file mode 100755 index 00000000..75ac364e --- /dev/null +++ b/scripts/reg @@ -0,0 +1,14 @@ +#!/bin/sh + +switch="-U" +current="-c" + +if [ "$1" = "-C" -o "$1" = "-U" -o "$1" = "-P" -o "$1" = "-M" ]; then + switch="$1" + shift +elif [ "$1" = "-b" -o "$1" = "-e" ]; then + current="$1 $2" + shift 2 +fi + +ledger $current -s $switch register "$@" |