From 2c6e2e65f6f53b98eaaac3a64a2f95f06665f4ab Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 27 Oct 2016 12:32:58 -0400 Subject: [PATCH] addp: correct usage statement --- addp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/addp b/addp index 545becc..80f7acc 100755 --- a/addp +++ b/addp @@ -1,6 +1,11 @@ #!/bin/bash -[ "$1" = "usage" ] && echo ' addz "THING I NEED TO DO +project @context"' && echo " add an item with z priority" && exit 0 +if [ "$1" = "usage" ] +then + echo ' addp PRIORITY "THING I NEED TO DO +project @context"' + echo " add an item with priority PRIORITY" + exit 0 +fi shift pri="$(tr '[:lower:]' '[:upper:]' <<< $1)"