diff options
author | Case Duckworth | 2022-08-13 11:30:44 -0500 |
---|---|---|
committer | Case Duckworth | 2022-08-13 11:30:44 -0500 |
commit | b97e227670327a7070dafecba888df82908655d4 (patch) | |
tree | 34628f96f956efbefe8567af60fee3405c4a3ce8 | |
parent | Add Makefile (diff) | |
download | shatom-b97e227670327a7070dafecba888df82908655d4.tar.gz shatom-b97e227670327a7070dafecba888df82908655d4.zip |
Implement -C
-rwxr-xr-x | shatom | 3 |
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 | ||
35 | main() { | 35 | main() { |
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 |