|
@@ -22,7 +22,7 @@ else:
|
22
|
22
|
"
|
23
|
23
|
|
24
|
24
|
usage() {
|
25
|
|
- usage_is "[-f|--force] [-t|--target TARGET] SOURCE [NAME]"
|
|
25
|
+ usage_is "[-f|--force] [-t|--target TARGET] [SOURCE] [NAME]"
|
26
|
26
|
}
|
27
|
27
|
|
28
|
28
|
link() {
|
|
@@ -47,13 +47,13 @@ while true; do case $1 in
|
47
|
47
|
-t|--target) target=$2 shift 2 ;;
|
48
|
48
|
--help) usage ;;
|
49
|
49
|
-*) usage ;;
|
50
|
|
- "") usage ;;
|
51
|
50
|
*) src=$1; name=$2; break ;;
|
52
|
51
|
esac done
|
53
|
52
|
|
54
|
53
|
test -z "$target" && target=$(load target)
|
55
|
54
|
test -z "$target" && target=$DEFAULT_TARGET
|
56
|
55
|
test -z "$name" && name="$(basename "$PWD")"
|
|
56
|
+test -z "$src" && src="."
|
57
|
57
|
|
58
|
58
|
debug -v name target
|
59
|
59
|
|