about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2022-08-13 11:30:44 -0500
committerCase Duckworth2022-08-13 11:30:44 -0500
commitb97e227670327a7070dafecba888df82908655d4 (patch)
tree34628f96f956efbefe8567af60fee3405c4a3ce8
parentAdd Makefile (diff)
downloadshatom-b97e227670327a7070dafecba888df82908655d4.tar.gz
shatom-b97e227670327a7070dafecba888df82908655d4.zip
Implement -C
-rwxr-xr-xshatom3
1 files changed, 2 insertions, 1 deletions
diff --git a/shatom b/shatom index ee2d676..8e3abe5 100755 --- a/shatom +++ b/shatom
@@ -34,10 +34,11 @@ EOF
34 34
35main() { 35main() {
36 # Command-line flags 36 # Command-line flags
37 while getopts hc: opt; do 37 while getopts hc:C: opt; do
38 case "$opt" in 38 case "$opt" in
39 h) usage ;; 39 h) usage ;;
40 c) CONFIG="$OPTARG" ;; 40 c) CONFIG="$OPTARG" ;;
41 C) cd "$OPTARG" || exit 2 ;;
41 *) usage 1 ;; 42 *) usage 1 ;;
42 esac 43 esac
43 done 44 done