|
|
|
@ -10,9 +10,9 @@ Help() |
|
|
|
|
echo |
|
|
|
|
echo "Syntax: new -c contentType -t 'some title'" |
|
|
|
|
echo "options:" |
|
|
|
|
echo "c Content Type: 'post', 'podcast', 'reading'" |
|
|
|
|
echo "t Content Title: \"Any Plain Text At All\"" |
|
|
|
|
echo "h This display." |
|
|
|
|
echo "-c [required] Content Type: 'post', 'podcast', 'reading'" |
|
|
|
|
echo "-t [required] Content Title: \"Any Plain Text At All\"" |
|
|
|
|
echo "-h This display." |
|
|
|
|
exit 0 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -21,7 +21,9 @@ do |
|
|
|
|
case "${flag}" in |
|
|
|
|
c) contentType=${OPTARG};; |
|
|
|
|
t) title=${OPTARG};; |
|
|
|
|
h) Help |
|
|
|
|
h) Help;; |
|
|
|
|
*) echo "-h for help" >&2 |
|
|
|
|
exit 1 ;; |
|
|
|
|
esac |
|
|
|
|
done |
|
|
|
|
|
|
|
|
|