소스 검색

Remove '--' argument

Since functions cannot start with '-' (and funky names are discouraged
anyway), it only adds more complexity to the arg router.
Alois Mahdal 10 년 전
부모
커밋
429722b039
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1
    5
      bin/fff

+ 1
- 5
bin/fff 파일 보기

@@ -6,7 +6,7 @@ ffoo import core
6 6
 
7 7
 
8 8
 usage() {
9
-    usage_is "[-I|--include module] [--] function [args...]"
9
+    usage_is "[-I|--include module] function [args...]"
10 10
 }
11 11
 
12 12
 includes=""
@@ -28,10 +28,6 @@ while true; do
28 28
         "")
29 29
             usage
30 30
             ;;
31
-        --)
32
-            shift 1
33
-            break
34
-            ;;
35 31
         *)
36 32
             break;
37 33
             ;;