# functions
usage () {
echo " USAGE"
- echo " $0 <command> [-d|--dryrun] [<-a|--allfiles>|<-p|--devfiles>] [-s|--short] ..."
+ echo " $0 <command> [-c|--config <override_file>] [-d|--dryrun] [<-a|--allfiles>|<-p|--devfiles>] [-s|--short] ..."
echo " $0 <-h|--help|help>"
echo " commands are:"
echo " create"
while [ $# -gt 0 ]; do
case $1 in
+ -c|--config)
+ CONFIG_FILE=$2
+ shift
+ ;;
-d|--dryrun)
DRY_RUN=y
psql () {
source $HOME/.brisk_install
fi
+if [ -f "$CONFIG_FILE" ]; then
+ source "$CONFIG_FILE"
+fi
+
pg_args=""
test "$DBHOST" != "" && pg_args="$pg_args -h $DBHOST"
test "$DBUSER" != "" && pg_args="$pg_args -U $DBUSER"