summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.zshrc10
1 files changed, 5 insertions, 5 deletions
diff --git a/.zshrc b/.zshrc
index ee6768a..d5703e5 100644
--- a/.zshrc
+++ b/.zshrc
@@ -80,20 +80,20 @@ function video-to-gif() {
}
function cut() {
- start_time="$1"
- end_time="$2"
- input_file="$3"
+ start_time="$2"
+ end_time="$3"
+ input_file="$1"
if [[ "$end_time" == "" ]]; then
ffmpeg -ss "$start_time" \
-i "$input_file" \
-c copy "$(date +"%Y%m%d_%H%M ")$input_file" \
- || printf "Usage: %s <start> <end> <input file>\n" "$0"
+ || printf "Usage: %s <input file> <start> <end>\n" "$0"
elif [[ "$end_time" != "" ]]; then
ffmpeg -ss "$start_time" -to "$end_time" \
-i "$input_file" \
-c copy "$(date +"%Y%m%d_%H%M ")$input_file" \
- || printf "Usage: %s <start> <end> <input file>\n" "$0"
+ || printf "Usage: %s <input file> <start> <end>\n" "$0"
fi
}