Skip to content

Commit f069d20

Browse files
committed
refactor: use --locate and -L instead of locate
1 parent ee91ad0 commit f069d20

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tusc.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ usage()
5858
$(info "-f --file") $(comment "The file to upload.")
5959
$(info "-h --help") $(comment "Show help information and usage.")
6060
$(info "-H --host") $(comment "The tus-server host where file is uploaded.")
61+
$(info "-L --locate") $(comment "Locate the uploaded file in tus-server.")
6162
$(info "-u --update") $(comment "Update tusc to latest version.")
6263
6364
$(ok Examples:)
@@ -139,7 +140,7 @@ while [[ $# -gt 0 ]]; do
139140
-f | --file) FILE="$2"; shift 2 ;;
140141
-h | --help | help) usage $1; exit 0 ;;
141142
-H | --host) HOST="$2"; shift 2 ;;
142-
locate) LOCATE=1; shift ;;
143+
-L | --locate) LOCATE=1; shift ;;
143144
-u | --update) update; exit 0 ;;
144145
--version | version) version; exit 0 ;;
145146
*) if [[ $HOST ]]; then

0 commit comments

Comments
 (0)