From 4aeb23ca423f28c79ea97c54817057a21e82ebbe Mon Sep 17 00:00:00 2001 From: Timothy Lebo <timrdf@gmail.com> Date: Tue, 24 Jan 2012 21:23:55 -0500 Subject: [PATCH] added --help to utils/ldspk.sh --- utils/ldspk.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/utils/ldspk.sh b/utils/ldspk.sh index 900975c8..f50c1c21 100755 --- a/utils/ldspk.sh +++ b/utils/ldspk.sh @@ -2,8 +2,13 @@ # # https://github.com/alangrafu/lodspeakr/blob/master/utils/ldspk.sh -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" USAGE="Usage: $0 create|delete uri|class|service foo [html|rdf|ttl|nt|json]" +if [[ $# -eq 0 || "$1" == "--help" ]]; then + echo $USAGE + exit 1 +fi + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" operations=( create delete ) modules=( class service uri ) formats=( html rdf ttl nt json all ) -- GitLab