aboutsummaryrefslogtreecommitdiffstats
path: root/mutator.sh
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2016-08-31 00:23:49 +0000
committerbloodstalker <thabogre@gmail.com>2016-08-31 00:23:49 +0000
commit7ef96a536bb87ca3f789ea031cc9b4210fd88f31 (patch)
tree7b57f44cdc4a5fa7c7cdd4acbb9158824e65d44f /mutator.sh
parenta simple c mutator. (diff)
downloadmutator-7ef96a536bb87ca3f789ea031cc9b4210fd88f31.tar.gz
mutator-7ef96a536bb87ca3f789ea031cc9b4210fd88f31.zip
some minor changes.
Diffstat (limited to '')
-rwxr-xr-xmutator.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/mutator.sh b/mutator.sh
index 1448921..d669332 100755
--- a/mutator.sh
+++ b/mutator.sh
@@ -22,13 +22,17 @@ do
echo "Version 1.0.0"
break
;;
- -t|--target)
+ -i|--input|-input)
INPUT="$2"
shift
;;
+ -o|--output|-output)
+ OUTPUT="$2"
+ shift
+ ;;
*)
#not a valid argument
- echo "$2 is not a valid argument."
+ echo "$1 $2 is not a valid argument."
break
;;
esac
@@ -51,4 +55,6 @@ elif [[ "$COMMAND" == "default" ]]; then
echo "Running all exetubales on target input."
"make" all
"./mutator" "$INPUT" -- > "$OUTPUT"
+else
+ echo "$COMMAND is not a valid command."
fi