File tree 1 file changed +22
-4
lines changed
1 file changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ It offer some API alternatives and allow to build external wrapper.
9
9
10
10
## new cli API proposal for 2021
11
11
12
-
13
12
* use verb for action
14
13
* stop using ` -h ` ` <msg> ` for reading help
15
14
* keep compatibily with old syntax trough a new verb: ` compat `
@@ -18,8 +17,7 @@ It offer some API alternatives and allow to build external wrapper.
18
17
19
18
### new verb
20
19
21
- replace ` -h `
22
-
20
+ ### replace ` -h `
23
21
24
22
```
25
23
Usage:
29
27
```
30
28
31
29
Example:
30
+
32
31
```
33
32
docopts parse "$USAGE" : <option passed here>
34
33
```
@@ -39,12 +38,31 @@ docopts parse "$USAGE" : <option passed here>
39
38
docopts compat -h "$USAGE" : <option passed here>
40
39
```
41
40
41
+ ### generate usage completion
42
+
42
43
generate usage completion (as ` kubect completion ` done by [ cobra] ( https://github.com/spf13/cobra/blob/master/shell_completions.md ) )
44
+
43
45
```
44
46
docopts completion "$usage"
45
47
```
46
48
49
+ ### debug mode:
50
+
51
+ ```
52
+ Usage:
53
+ docopts debug [--explain-parsed] USAGE : [<argv>...]
54
+ docopts debug [--show-argument-match] USAGE : [<argv>...]
55
+ ```
56
+
57
+ ### ` docopt.sh ` compatibile generator
58
+
59
+ ```
60
+ Usage:
61
+ docopts generate USAGE
62
+ docopts generate -f FILENAME
63
+ ```
64
+
47
65
48
66
## Dropped JSON API proposal
49
67
50
- old ` API_proposal.md `
68
+ old [ API_proposal.md] ( https://github.com/docopt/docopts/blob/031ceb2f0700ac0e40303d72167b91586a6d60da/API_proposal.md )
You can’t perform that action at this time.
0 commit comments