Commit fcab47a8cf27c86e262858f310afdf8f59052283
Stub more options
cel committed on 3/29/2017, 4:05:34 PMParent: 02ac1bf6c426549d3331d83a77f16c0327f78872
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -15,13 +15,24 @@ | ||
15 | 15 … | |
16 | 16 … | function handleOption(options, name, value) { |
17 | 17 … | switch (name) { |
18 | 18 … | case 'verbosity': |
19 | - options.verbosity = +value || 0 | |
19 … | + options.verbosity = value|0 | |
20 | 20 … | return true |
21 | 21 … | case 'progress': |
22 | 22 … | options.progress = !!value && value !== 'false' |
23 | 23 … | return true |
24 … | + /* | |
25 … | + case 'followtags': | |
26 … | + options.followtags = !!value | |
27 … | + return true | |
28 … | + case 'depth': | |
29 … | + options.depth = depth|0 | |
30 … | + return true | |
31 … | + case 'deepen-relative': | |
32 … | + options.deepenRelative = !!value && value !== 'false' | |
33 … | + return true | |
34 … | + */ | |
24 | 35 … | default: |
25 | 36 … | console.error('unknown option', name + ': ' + value) |
26 | 37 … | return false |
27 | 38 … | } |
Built with git-ssb-web