doing 2.0.24 → 2.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +1 -1
- data/README.md +7 -1
- data/bin/doing +142 -70
- data/doing.rdoc +45 -21
- data/example_plugin.rb +2 -2
- data/lib/completion/_doing.zsh +41 -41
- data/lib/completion/doing.bash +2 -2
- data/lib/completion/doing.fish +0 -279
- data/lib/doing/completion/bash_completion.rb +1 -2
- data/lib/doing/completion/fish_completion.rb +1 -1
- data/lib/doing/completion/zsh_completion.rb +1 -1
- data/lib/doing/configuration.rb +85 -15
- data/lib/doing/string.rb +30 -18
- data/lib/doing/version.rb +1 -1
- data/lib/doing/wwid.rb +2 -5
- data/rdoc_to_mmd.rb +14 -8
- data/scripts/generate_bash_completions.rb +1 -1
- data/scripts/generate_fish_completions.rb +1 -1
- data/scripts/generate_zsh_completions.rb +1 -1
- metadata +1 -1
data/lib/completion/_doing.zsh
CHANGED
@@ -66,22 +66,22 @@ function _doing() {
|
|
66
66
|
args=( )
|
67
67
|
;;
|
68
68
|
again)
|
69
|
-
args=(
|
69
|
+
args=( )
|
70
70
|
;;
|
71
71
|
resume)
|
72
|
-
args=(
|
72
|
+
args=( )
|
73
73
|
;;
|
74
74
|
archive)
|
75
|
-
args=(
|
75
|
+
args=( )
|
76
76
|
;;
|
77
77
|
move)
|
78
|
-
args=(
|
78
|
+
args=( )
|
79
79
|
;;
|
80
80
|
autotag)
|
81
|
-
args=(
|
81
|
+
args=( )
|
82
82
|
;;
|
83
83
|
cancel)
|
84
|
-
args=(
|
84
|
+
args=( )
|
85
85
|
;;
|
86
86
|
choose)
|
87
87
|
args=( )
|
@@ -90,115 +90,115 @@ function _doing() {
|
|
90
90
|
args=( )
|
91
91
|
;;
|
92
92
|
completion)
|
93
|
-
args=(
|
93
|
+
args=( )
|
94
94
|
;;
|
95
95
|
config)
|
96
|
-
args=(
|
96
|
+
args=( )
|
97
97
|
;;
|
98
98
|
done)
|
99
|
-
args=(
|
99
|
+
args=( )
|
100
100
|
;;
|
101
101
|
did)
|
102
|
-
args=(
|
102
|
+
args=( )
|
103
103
|
;;
|
104
104
|
finish)
|
105
|
-
args=(
|
105
|
+
args=( )
|
106
106
|
;;
|
107
107
|
grep)
|
108
|
-
args=(
|
108
|
+
args=( )
|
109
109
|
;;
|
110
110
|
search)
|
111
|
-
args=(
|
111
|
+
args=( )
|
112
112
|
;;
|
113
113
|
help)
|
114
114
|
args=( )
|
115
115
|
;;
|
116
116
|
import)
|
117
|
-
args=(
|
117
|
+
args=( )
|
118
118
|
;;
|
119
119
|
last)
|
120
|
-
args=(
|
120
|
+
args=( )
|
121
121
|
;;
|
122
122
|
later)
|
123
|
-
args=(
|
123
|
+
args=( )
|
124
124
|
;;
|
125
125
|
mark)
|
126
|
-
args=(
|
126
|
+
args=( )
|
127
127
|
;;
|
128
128
|
flag)
|
129
|
-
args=(
|
129
|
+
args=( )
|
130
130
|
;;
|
131
131
|
meanwhile)
|
132
|
-
args=(
|
132
|
+
args=( )
|
133
133
|
;;
|
134
134
|
note)
|
135
|
-
args=(
|
135
|
+
args=( )
|
136
136
|
;;
|
137
137
|
now)
|
138
|
-
args=(
|
138
|
+
args=( )
|
139
139
|
;;
|
140
140
|
next)
|
141
|
-
args=(
|
141
|
+
args=( )
|
142
142
|
;;
|
143
143
|
on)
|
144
|
-
args=(
|
144
|
+
args=( )
|
145
145
|
;;
|
146
146
|
open)
|
147
|
-
args=(
|
147
|
+
args=( )
|
148
148
|
;;
|
149
149
|
plugins)
|
150
|
-
args=(
|
150
|
+
args=( )
|
151
151
|
;;
|
152
152
|
recent)
|
153
|
-
args=(
|
153
|
+
args=( )
|
154
154
|
;;
|
155
155
|
reset)
|
156
|
-
args=(
|
156
|
+
args=( )
|
157
157
|
;;
|
158
158
|
begin)
|
159
|
-
args=(
|
159
|
+
args=( )
|
160
160
|
;;
|
161
161
|
rotate)
|
162
|
-
args=(
|
162
|
+
args=( )
|
163
163
|
;;
|
164
164
|
sections)
|
165
|
-
args=(
|
165
|
+
args=( )
|
166
166
|
;;
|
167
167
|
select)
|
168
|
-
args=(
|
168
|
+
args=( )
|
169
169
|
;;
|
170
170
|
show)
|
171
|
-
args=(
|
171
|
+
args=( )
|
172
172
|
;;
|
173
173
|
since)
|
174
|
-
args=(
|
174
|
+
args=( )
|
175
175
|
;;
|
176
176
|
tag)
|
177
|
-
args=(
|
177
|
+
args=( )
|
178
178
|
;;
|
179
179
|
template)
|
180
|
-
args=(
|
180
|
+
args=( )
|
181
181
|
;;
|
182
182
|
test)
|
183
183
|
args=( )
|
184
184
|
;;
|
185
185
|
today)
|
186
|
-
args=(
|
186
|
+
args=( )
|
187
187
|
;;
|
188
188
|
undo)
|
189
|
-
args=(
|
189
|
+
args=( )
|
190
190
|
;;
|
191
191
|
view)
|
192
|
-
args=(
|
192
|
+
args=( )
|
193
193
|
;;
|
194
194
|
views)
|
195
|
-
args=(
|
195
|
+
args=( )
|
196
196
|
;;
|
197
197
|
wiki)
|
198
|
-
args=(
|
198
|
+
args=( )
|
199
199
|
;;
|
200
200
|
yesterday)
|
201
|
-
args=(
|
201
|
+
args=( )
|
202
202
|
;;
|
203
203
|
esac
|
204
204
|
|
data/lib/completion/doing.bash
CHANGED
@@ -71,9 +71,9 @@ _doing_completion() {
|
|
71
71
|
_doing_config() {
|
72
72
|
|
73
73
|
if [[ "$token" == --* ]]; then
|
74
|
-
COMPREPLY=( $( compgen -W '--dump --
|
74
|
+
COMPREPLY=( $( compgen -W '--dump --update' -- $token ) )
|
75
75
|
elif [[ "$token" == -* ]]; then
|
76
|
-
COMPREPLY=( $( compgen -W '-d -
|
76
|
+
COMPREPLY=( $( compgen -W '-d -u --dump --update' -- $token ) )
|
77
77
|
|
78
78
|
fi
|
79
79
|
}
|
data/lib/completion/doing.fish
CHANGED
@@ -96,283 +96,4 @@ complete -xc doing -n '__fish_doing_needs_command' -a 'view' -d Display\ a\ user
|
|
96
96
|
complete -xc doing -n '__fish_doing_needs_command' -a 'views' -d List\ available\ custom\ views
|
97
97
|
complete -xc doing -n '__fish_doing_needs_command' -a 'wiki' -d Output\ a\ tag\ wiki
|
98
98
|
complete -xc doing -n '__fish_doing_needs_command' -a 'yesterday' -d List\ entries\ from\ yesterday
|
99
|
-
complete -c doing -l bool -f -r -n '__fish_doing_using_command again resume' -d Boolean\ used\ to\ combine\ multiple\ tags
|
100
|
-
complete -c doing -l case -f -r -n '__fish_doing_using_command again resume' -d Case\ sensitivity\ for\ search\ string\ matching\ \[\(c\)ase-sensitive
|
101
|
-
complete -c doing -l editor -s e -f -n '__fish_doing_using_command again resume' -d Edit\ duplicated\ entry\ with\ vim\ before\ adding
|
102
|
-
complete -c doing -l interactive -s i -f -n '__fish_doing_using_command again resume' -d Select\ item\ to\ resume\ from\ a\ menu\ of\ matching\ entries
|
103
|
-
complete -c doing -l in -f -r -n '__fish_doing_using_command again resume' -d Add\ new\ entry\ to\ section
|
104
|
-
complete -c doing -l note -s n -f -r -n '__fish_doing_using_command again resume' -d Note
|
105
|
-
complete -c doing -l not -f -n '__fish_doing_using_command again resume' -d Resume\ items\ that\ \*don\'t\*\ match\ search/tag\ filters
|
106
|
-
complete -c doing -l section -s s -f -r -n '__fish_doing_using_command again resume' -d Get\ last\ entry\ from\ a\ specific\ section
|
107
|
-
complete -c doing -l search -f -r -n '__fish_doing_using_command again resume' -d Repeat\ last\ entry\ matching\ search
|
108
|
-
complete -c doing -l tag -f -r -n '__fish_doing_using_command again resume' -d Repeat\ last\ entry\ matching\ tags
|
109
|
-
complete -c doing -l exact -s x -f -n '__fish_doing_using_command again resume' -d Force\ exact\ search\ string\ matching
|
110
|
-
complete -c doing -l before -f -r -n '__fish_doing_using_command archive move' -d Archive\ entries\ older\ than\ date
|
111
|
-
complete -c doing -l bool -f -r -n '__fish_doing_using_command archive move' -d Tag\ boolean
|
112
|
-
complete -c doing -l case -f -r -n '__fish_doing_using_command archive move' -d Case\ sensitivity\ for\ search\ string\ matching\ \[\(c\)ase-sensitive
|
113
|
-
complete -c doing -l keep -s k -f -r -n '__fish_doing_using_command archive move' -d How\ many\ items\ to\ keep
|
114
|
-
complete -c doing -l label -f -n '__fish_doing_using_command archive move' -d Label\ moved\ items\ with\ @from\(SECTION_NAME\)
|
115
|
-
complete -c doing -l not -f -n '__fish_doing_using_command archive move' -d Show\ items\ that\ \*don\'t\*\ match\ search\ string
|
116
|
-
complete -c doing -l search -f -r -n '__fish_doing_using_command archive move' -d Search\ filter
|
117
|
-
complete -c doing -l to -s t -f -r -n '__fish_doing_using_command archive move' -d Move\ entries\ to
|
118
|
-
complete -c doing -l tag -f -r -n '__fish_doing_using_command archive move' -d Tag\ filter
|
119
|
-
complete -c doing -l exact -s x -f -n '__fish_doing_using_command archive move' -d Force\ exact\ search\ string\ matching
|
120
|
-
complete -c doing -l bool -f -r -n '__fish_doing_using_command autotag' -d Boolean
|
121
|
-
complete -c doing -l count -s c -f -r -n '__fish_doing_using_command autotag' -d How\ many\ recent\ entries\ to\ autotag
|
122
|
-
complete -c doing -l force -f -n '__fish_doing_using_command autotag' -d Don\'t\ ask\ permission\ to\ autotag\ all\ entries\ when\ count\ is\ 0
|
123
|
-
complete -c doing -l interactive -s i -f -n '__fish_doing_using_command autotag' -d Select\ item\(s\)\ to\ tag\ from\ a\ menu\ of\ matching\ entries
|
124
|
-
complete -c doing -l section -s s -f -r -n '__fish_doing_using_command autotag' -d Section
|
125
|
-
complete -c doing -l search -f -r -n '__fish_doing_using_command autotag' -d Autotag\ entries\ matching\ search\ filter
|
126
|
-
complete -c doing -l tag -f -r -n '__fish_doing_using_command autotag' -d Autotag\ the\ last\ X\ entries\ containing\ TAG
|
127
|
-
complete -c doing -l unfinished -s u -f -n '__fish_doing_using_command autotag' -d Autotag\ last\ entry
|
128
|
-
complete -c doing -l archive -s a -f -n '__fish_doing_using_command cancel' -d Archive\ entries
|
129
|
-
complete -c doing -l bool -f -r -n '__fish_doing_using_command cancel' -d Boolean
|
130
|
-
complete -c doing -l case -f -r -n '__fish_doing_using_command cancel' -d Case\ sensitivity\ for\ search\ string\ matching\ \[\(c\)ase-sensitive
|
131
|
-
complete -c doing -l interactive -s i -f -n '__fish_doing_using_command cancel' -d Select\ item\(s\)\ to\ cancel\ from\ a\ menu\ of\ matching\ entries
|
132
|
-
complete -c doing -l not -f -n '__fish_doing_using_command cancel' -d Finish\ items\ that\ \*don\'t\*\ match\ search/tag\ filters
|
133
|
-
complete -c doing -l section -s s -f -r -n '__fish_doing_using_command cancel' -d Section
|
134
|
-
complete -c doing -l search -f -r -n '__fish_doing_using_command cancel' -d Cancel\ the\ last\ X\ entries\ matching\ search\ filter
|
135
|
-
complete -c doing -l tag -f -r -n '__fish_doing_using_command cancel' -d Cancel\ the\ last\ X\ entries\ containing\ TAG
|
136
|
-
complete -c doing -l unfinished -s u -f -n '__fish_doing_using_command cancel' -d Cancel\ last\ entry
|
137
|
-
complete -c doing -l exact -s x -f -n '__fish_doing_using_command cancel' -d Force\ exact\ search\ string\ matching
|
138
|
-
complete -c doing -l file -s f -f -r -n '__fish_doing_using_command completion' -d File\ to\ write\ output\ to
|
139
|
-
complete -c doing -l type -s t -f -r -n '__fish_doing_using_command completion' -d Shell\ to\ generate\ for
|
140
|
-
complete -c doing -F -n '__fish_doing_using_command config'
|
141
|
-
complete -c doing -l dump -s d -f -n '__fish_doing_using_command config' -d Show\ a\ config\ key\ value\ based\ on\ arguments
|
142
|
-
complete -c doing -l editor -s e -f -r -n '__fish_doing_using_command config' -d Editor\ to\ use
|
143
|
-
complete -c doing -l output -s o -f -r -n '__fish_doing_using_command config' -d Format\ for\ --dump
|
144
|
-
complete -c doing -l update -s u -f -n '__fish_doing_using_command config' -d Update\ config\ file\ with\ missing\ configuration\ options
|
145
|
-
complete -c doing -l archive -s a -f -n '__fish_doing_using_command done did' -d Immediately\ archive\ the\ entry
|
146
|
-
complete -c doing -l at -f -r -n '__fish_doing_using_command done did' -d Set\ finish\ date\ to\ specific\ date/time
|
147
|
-
complete -c doing -l back -s b -f -r -n '__fish_doing_using_command done did' -d Backdate\ start\ date\ by\ interval\ \[4pm\|20m\|2h\|yesterday\ noon\]
|
148
|
-
complete -c doing -l date -f -n '__fish_doing_using_command done did' -d Include\ date
|
149
|
-
complete -c doing -l editor -s e -f -n '__fish_doing_using_command done did' -d Edit\ entry\ with\ vim
|
150
|
-
complete -c doing -l note -s n -f -r -n '__fish_doing_using_command done did' -d Include\ a\ note
|
151
|
-
complete -c doing -l remove -s r -f -n '__fish_doing_using_command done did' -d Remove\ @done\ tag
|
152
|
-
complete -c doing -l section -s s -f -r -n '__fish_doing_using_command done did' -d Section
|
153
|
-
complete -c doing -l took -s t -f -r -n '__fish_doing_using_command done did' -d Set\ completion\ date\ to\ start\ date\ plus\ interval
|
154
|
-
complete -c doing -l unfinished -s u -f -n '__fish_doing_using_command done did' -d Finish\ last\ entry\ not\ already\ marked\ @done
|
155
|
-
complete -c doing -l archive -s a -f -n '__fish_doing_using_command finish' -d Archive\ entries
|
156
|
-
complete -c doing -l at -f -r -n '__fish_doing_using_command finish' -d Set\ finish\ date\ to\ specific\ date/time
|
157
|
-
complete -c doing -l auto -f -n '__fish_doing_using_command finish' -d Auto-generate\ finish\ dates\ from\ next\ entry\'s\ start\ time
|
158
|
-
complete -c doing -l back -s b -f -r -n '__fish_doing_using_command finish' -d Backdate\ completed\ date\ to\ date\ string\ \[4pm\|20m\|2h\|yesterday\ noon\]
|
159
|
-
complete -c doing -l bool -f -r -n '__fish_doing_using_command finish' -d Boolean
|
160
|
-
complete -c doing -l case -f -r -n '__fish_doing_using_command finish' -d Case\ sensitivity\ for\ search\ string\ matching\ \[\(c\)ase-sensitive
|
161
|
-
complete -c doing -l date -f -n '__fish_doing_using_command finish' -d Include\ date
|
162
|
-
complete -c doing -l interactive -s i -f -n '__fish_doing_using_command finish' -d Select\ item\(s\)\ to\ finish\ from\ a\ menu\ of\ matching\ entries
|
163
|
-
complete -c doing -l not -f -n '__fish_doing_using_command finish' -d Finish\ items\ that\ \*don\'t\*\ match\ search/tag\ filters
|
164
|
-
complete -c doing -l remove -s r -f -n '__fish_doing_using_command finish' -d Remove\ done\ tag
|
165
|
-
complete -c doing -l section -s s -f -r -n '__fish_doing_using_command finish' -d Section
|
166
|
-
complete -c doing -l search -f -r -n '__fish_doing_using_command finish' -d Finish\ the\ last\ X\ entries\ matching\ search\ filter
|
167
|
-
complete -c doing -l took -s t -f -r -n '__fish_doing_using_command finish' -d Set\ the\ completed\ date\ to\ the\ start\ date\ plus\ XX\[hmd\]
|
168
|
-
complete -c doing -l tag -f -r -n '__fish_doing_using_command finish' -d Finish\ the\ last\ X\ entries\ containing\ TAG
|
169
|
-
complete -c doing -l unfinished -s u -f -n '__fish_doing_using_command finish' -d Finish\ last\ entry
|
170
|
-
complete -c doing -l exact -s x -f -n '__fish_doing_using_command finish' -d Force\ exact\ search\ string\ matching
|
171
|
-
complete -c doing -l after -f -r -n '__fish_doing_using_command grep search' -d Constrain\ search\ to\ entries\ newer\ than\ date
|
172
|
-
complete -c doing -l before -f -r -n '__fish_doing_using_command grep search' -d Constrain\ search\ to\ entries\ older\ than\ date
|
173
|
-
complete -c doing -l case -f -r -n '__fish_doing_using_command grep search' -d Case\ sensitivity\ for\ search\ string\ matching\ \[\(c\)ase-sensitive
|
174
|
-
complete -c doing -l interactive -s i -f -n '__fish_doing_using_command grep search' -d Display\ an\ interactive\ menu\ of\ results\ to\ perform\ further\ operations
|
175
|
-
complete -c doing -l not -f -n '__fish_doing_using_command grep search' -d Show\ items\ that\ \*don\'t\*\ match\ search\ string
|
176
|
-
complete -c doing -l output -s o -f -r -n '__fish_doing_using_command grep search' -d Output\ to\ export\ format
|
177
|
-
complete -c doing -l only_timed -f -n '__fish_doing_using_command grep search' -d Only\ show\ items\ with\ recorded\ time\ intervals
|
178
|
-
complete -c doing -l section -s s -f -r -n '__fish_doing_using_command grep search' -d Section
|
179
|
-
complete -c doing -l times -s t -f -n '__fish_doing_using_command grep search' -d Show\ time\ intervals\ on\ @done\ tasks
|
180
|
-
complete -c doing -l tag_sort -f -r -n '__fish_doing_using_command grep search' -d Sort\ tags\ by
|
181
|
-
complete -c doing -l totals -f -n '__fish_doing_using_command grep search' -d Show\ intervals\ with\ totals\ at\ the\ end\ of\ output
|
182
|
-
complete -c doing -l exact -s x -f -n '__fish_doing_using_command grep search' -d Force\ exact\ string\ matching
|
183
99
|
complete -c doing -F -n '__fish_doing_using_command import'
|
184
|
-
complete -c doing -l after -f -r -n '__fish_doing_using_command import' -d Import\ entries\ newer\ than\ date
|
185
|
-
complete -c doing -l autotag -f -n '__fish_doing_using_command import' -d Autotag\ entries
|
186
|
-
complete -c doing -l before -f -r -n '__fish_doing_using_command import' -d Import\ entries\ older\ than\ date
|
187
|
-
complete -c doing -l case -f -r -n '__fish_doing_using_command import' -d Case\ sensitivity\ for\ search\ string\ matching\ \[\(c\)ase-sensitive
|
188
|
-
complete -c doing -l from -s f -f -r -n '__fish_doing_using_command import' -d Date\ range\ to\ import
|
189
|
-
complete -c doing -l not -f -n '__fish_doing_using_command import' -d Import\ items\ that\ \*don\'t\*\ match\ search/tag/date\ filters
|
190
|
-
complete -c doing -l only_timed -f -n '__fish_doing_using_command import' -d Only\ import\ items\ with\ recorded\ time\ intervals
|
191
|
-
complete -c doing -l overlap -f -n '__fish_doing_using_command import' -d Allow\ entries\ that\ overlap\ existing\ times
|
192
|
-
complete -c doing -l prefix -f -r -n '__fish_doing_using_command import' -d Prefix\ entries\ with
|
193
|
-
complete -c doing -l section -s s -f -r -n '__fish_doing_using_command import' -d Target\ section
|
194
|
-
complete -c doing -l search -f -r -n '__fish_doing_using_command import' -d Only\ import\ items\ matching\ search
|
195
|
-
complete -c doing -l tag -f -r -n '__fish_doing_using_command import' -d Tag\ all\ imported\ entries
|
196
|
-
complete -c doing -l type -f -r -n '__fish_doing_using_command import' -d Import\ type
|
197
|
-
complete -c doing -l exact -s x -f -n '__fish_doing_using_command import' -d Force\ exact\ search\ string\ matching
|
198
|
-
complete -c doing -l bool -f -r -n '__fish_doing_using_command last' -d Tag\ boolean
|
199
|
-
complete -c doing -l case -f -r -n '__fish_doing_using_command last' -d Case\ sensitivity\ for\ search\ string\ matching\ \[\(c\)ase-sensitive
|
200
|
-
complete -c doing -l editor -s e -f -n '__fish_doing_using_command last' -d Edit\ entry\ with\ vim
|
201
|
-
complete -c doing -l not -f -n '__fish_doing_using_command last' -d Show\ items\ that\ \*don\'t\*\ match\ search\ string\ or\ tag\ filter
|
202
|
-
complete -c doing -l section -s s -f -r -n '__fish_doing_using_command last' -d Specify\ a\ section
|
203
|
-
complete -c doing -l search -f -r -n '__fish_doing_using_command last' -d Search\ filter
|
204
|
-
complete -c doing -l tag -f -r -n '__fish_doing_using_command last' -d Tag\ filter
|
205
|
-
complete -c doing -l exact -s x -f -n '__fish_doing_using_command last' -d Force\ exact\ search\ string\ matching
|
206
|
-
complete -c doing -l back -s b -f -r -n '__fish_doing_using_command later' -d Backdate\ start\ time\ to\ date\ string\ \[4pm\|20m\|2h\|yesterday\ noon\]
|
207
|
-
complete -c doing -l editor -s e -f -n '__fish_doing_using_command later' -d Edit\ entry\ with\ vim
|
208
|
-
complete -c doing -l note -s n -f -r -n '__fish_doing_using_command later' -d Note
|
209
|
-
complete -c doing -l bool -f -r -n '__fish_doing_using_command mark flag' -d Boolean
|
210
|
-
complete -c doing -l count -s c -f -r -n '__fish_doing_using_command mark flag' -d How\ many\ recent\ entries\ to\ tag
|
211
|
-
complete -c doing -l case -f -r -n '__fish_doing_using_command mark flag' -d Case\ sensitivity\ for\ search\ string\ matching\ \[\(c\)ase-sensitive
|
212
|
-
complete -c doing -l date -s d -f -n '__fish_doing_using_command mark flag' -d Include\ current\ date/time\ with\ tag
|
213
|
-
complete -c doing -l force -f -n '__fish_doing_using_command mark flag' -d Don\'t\ ask\ permission\ to\ flag\ all\ entries\ when\ count\ is\ 0
|
214
|
-
complete -c doing -l interactive -s i -f -n '__fish_doing_using_command mark flag' -d Select\ item\(s\)\ to\ flag\ from\ a\ menu\ of\ matching\ entries
|
215
|
-
complete -c doing -l not -f -n '__fish_doing_using_command mark flag' -d Flag\ items\ that\ \*don\'t\*\ match\ search/tag/date\ filters
|
216
|
-
complete -c doing -l remove -s r -f -n '__fish_doing_using_command mark flag' -d Remove\ flag
|
217
|
-
complete -c doing -l section -s s -f -r -n '__fish_doing_using_command mark flag' -d Section
|
218
|
-
complete -c doing -l search -f -r -n '__fish_doing_using_command mark flag' -d Flag\ the\ last\ entry\ matching\ search\ filter
|
219
|
-
complete -c doing -l tag -f -r -n '__fish_doing_using_command mark flag' -d Flag\ the\ last\ entry\ containing\ TAG
|
220
|
-
complete -c doing -l unfinished -s u -f -n '__fish_doing_using_command mark flag' -d Flag\ last\ entry
|
221
|
-
complete -c doing -l exact -s x -f -n '__fish_doing_using_command mark flag' -d Force\ exact\ search\ string\ matching
|
222
|
-
complete -c doing -l archive -s a -f -n '__fish_doing_using_command meanwhile' -d Archive\ previous\ @meanwhile\ entry
|
223
|
-
complete -c doing -l back -s b -f -r -n '__fish_doing_using_command meanwhile' -d Backdate\ start\ date\ for\ new\ entry\ to\ date\ string\ \[4pm\|20m\|2h\|yesterday\ noon\]
|
224
|
-
complete -c doing -l editor -s e -f -n '__fish_doing_using_command meanwhile' -d Edit\ entry\ with\ vim
|
225
|
-
complete -c doing -l note -s n -f -r -n '__fish_doing_using_command meanwhile' -d Note
|
226
|
-
complete -c doing -l section -s s -f -r -n '__fish_doing_using_command meanwhile' -d Section
|
227
|
-
complete -c doing -l bool -f -r -n '__fish_doing_using_command note' -d Boolean
|
228
|
-
complete -c doing -l case -f -r -n '__fish_doing_using_command note' -d Case\ sensitivity\ for\ search\ string\ matching\ \[\(c\)ase-sensitive
|
229
|
-
complete -c doing -l editor -s e -f -n '__fish_doing_using_command note' -d Edit\ entry\ with\ vim
|
230
|
-
complete -c doing -l interactive -s i -f -n '__fish_doing_using_command note' -d Select\ item\ for\ new\ note\ from\ a\ menu\ of\ matching\ entries
|
231
|
-
complete -c doing -l not -f -n '__fish_doing_using_command note' -d Add\ note\ to\ item\ that\ \*doesn\'t\*\ match\ search/tag\ filters
|
232
|
-
complete -c doing -l remove -s r -f -n '__fish_doing_using_command note' -d Replace/Remove\ last\ entry\'s\ note
|
233
|
-
complete -c doing -l section -s s -f -r -n '__fish_doing_using_command note' -d Section
|
234
|
-
complete -c doing -l search -f -r -n '__fish_doing_using_command note' -d Add/remove\ note\ from\ last\ entry\ matching\ search\ filter
|
235
|
-
complete -c doing -l tag -f -r -n '__fish_doing_using_command note' -d Add/remove\ note\ from\ last\ entry\ matching\ tag
|
236
|
-
complete -c doing -l exact -s x -f -n '__fish_doing_using_command note' -d Force\ exact\ search\ string\ matching
|
237
|
-
complete -c doing -l back -s b -f -r -n '__fish_doing_using_command now next' -d Backdate\ start\ time\ \[4pm\|20m\|2h\|yesterday\ noon\]
|
238
|
-
complete -c doing -l editor -s e -f -n '__fish_doing_using_command now next' -d Edit\ entry\ with\ vim
|
239
|
-
complete -c doing -l finish_last -s f -f -n '__fish_doing_using_command now next' -d Timed\ entry
|
240
|
-
complete -c doing -l note -s n -f -r -n '__fish_doing_using_command now next' -d Include\ a\ note
|
241
|
-
complete -c doing -l section -s s -f -r -n '__fish_doing_using_command now next' -d Section
|
242
|
-
complete -c doing -l output -s o -f -r -n '__fish_doing_using_command on' -d Output\ to\ export\ format
|
243
|
-
complete -c doing -l section -s s -f -r -n '__fish_doing_using_command on' -d Section
|
244
|
-
complete -c doing -l times -s t -f -n '__fish_doing_using_command on' -d Show\ time\ intervals\ on\ @done\ tasks
|
245
|
-
complete -c doing -l tag_sort -f -r -n '__fish_doing_using_command on' -d Sort\ tags\ by
|
246
|
-
complete -c doing -l totals -f -n '__fish_doing_using_command on' -d Show\ time\ totals\ at\ the\ end\ of\ output
|
247
|
-
complete -c doing -l app -s a -f -r -n '__fish_doing_using_command open' -d Open\ with\ app\ name
|
248
|
-
complete -c doing -l bundle_id -s b -f -r -n '__fish_doing_using_command open' -d Open\ with\ app\ bundle\ id
|
249
|
-
complete -c doing -l column -s c -f -n '__fish_doing_using_command plugins' -d List\ in\ single\ column\ for\ completion
|
250
|
-
complete -c doing -l type -s t -f -r -n '__fish_doing_using_command plugins' -d List\ plugins\ of\ type
|
251
|
-
complete -c doing -l interactive -s i -f -n '__fish_doing_using_command recent' -d Select\ from\ a\ menu\ of\ matching\ entries\ to\ perform\ additional\ operations
|
252
|
-
complete -c doing -l section -s s -f -r -n '__fish_doing_using_command recent' -d Section
|
253
|
-
complete -c doing -l times -s t -f -n '__fish_doing_using_command recent' -d Show\ time\ intervals\ on\ @done\ tasks
|
254
|
-
complete -c doing -l tag_sort -f -r -n '__fish_doing_using_command recent' -d Sort\ tags\ by
|
255
|
-
complete -c doing -l totals -f -n '__fish_doing_using_command recent' -d Show\ intervals\ with\ totals\ at\ the\ end\ of\ output
|
256
|
-
complete -c doing -l bool -f -r -n '__fish_doing_using_command reset begin' -d Boolean
|
257
|
-
complete -c doing -l case -f -r -n '__fish_doing_using_command reset begin' -d Case\ sensitivity\ for\ search\ string\ matching\ \[\(c\)ase-sensitive
|
258
|
-
complete -c doing -l interactive -s i -f -n '__fish_doing_using_command reset begin' -d Select\ from\ a\ menu\ of\ matching\ entries
|
259
|
-
complete -c doing -l not -f -n '__fish_doing_using_command reset begin' -d Reset\ items\ that\ \*don\'t\*\ match\ search/tag\ filters
|
260
|
-
complete -c doing -l resume -s r -f -n '__fish_doing_using_command reset begin' -d Resume\ entry
|
261
|
-
complete -c doing -l section -s s -f -r -n '__fish_doing_using_command reset begin' -d Limit\ search\ to\ section
|
262
|
-
complete -c doing -l search -f -r -n '__fish_doing_using_command reset begin' -d Reset\ last\ entry\ matching\ search\ filter
|
263
|
-
complete -c doing -l tag -f -r -n '__fish_doing_using_command reset begin' -d Reset\ last\ entry\ matching\ tag
|
264
|
-
complete -c doing -l exact -s x -f -n '__fish_doing_using_command reset begin' -d Force\ exact\ search\ string\ matching
|
265
|
-
complete -c doing -l before -f -r -n '__fish_doing_using_command rotate' -d Rotate\ entries\ older\ than\ date
|
266
|
-
complete -c doing -l bool -f -r -n '__fish_doing_using_command rotate' -d Tag\ boolean
|
267
|
-
complete -c doing -l case -f -r -n '__fish_doing_using_command rotate' -d Case\ sensitivity\ for\ search\ string\ matching\ \[\(c\)ase-sensitive
|
268
|
-
complete -c doing -l keep -s k -f -r -n '__fish_doing_using_command rotate' -d How\ many\ items\ to\ keep\ in\ each\ section
|
269
|
-
complete -c doing -l not -f -n '__fish_doing_using_command rotate' -d Rotate\ items\ that\ \*don\'t\*\ match\ search\ string\ or\ tag\ filter
|
270
|
-
complete -c doing -l section -s s -f -r -n '__fish_doing_using_command rotate' -d Section\ to\ rotate
|
271
|
-
complete -c doing -l search -f -r -n '__fish_doing_using_command rotate' -d Search\ filter
|
272
|
-
complete -c doing -l tag -f -r -n '__fish_doing_using_command rotate' -d Tag\ filter
|
273
|
-
complete -c doing -l exact -s x -f -n '__fish_doing_using_command rotate' -d Force\ exact\ search\ string\ matching
|
274
|
-
complete -c doing -l column -s c -f -n '__fish_doing_using_command sections' -d List\ in\ single\ column
|
275
|
-
complete -c doing -l archive -s a -f -n '__fish_doing_using_command select' -d Archive\ selected\ items
|
276
|
-
complete -c doing -l resume -f -n '__fish_doing_using_command select' -d Copy\ selection\ as\ a\ new\ entry\ with\ current\ time\ and\ no\ @done\ tag
|
277
|
-
complete -c doing -l cancel -s c -f -n '__fish_doing_using_command select' -d Cancel\ selected\ items
|
278
|
-
complete -c doing -l case -f -r -n '__fish_doing_using_command select' -d Case\ sensitivity\ for\ search\ string\ matching\ \[\(c\)ase-sensitive
|
279
|
-
complete -c doing -l delete -s d -f -n '__fish_doing_using_command select' -d Delete\ selected\ items
|
280
|
-
complete -c doing -l editor -s e -f -n '__fish_doing_using_command select' -d Edit\ selected\ item\(s\)
|
281
|
-
complete -c doing -l finish -s f -f -n '__fish_doing_using_command select' -d Add\ @done\ with\ current\ time\ to\ selected\ item\(s\)
|
282
|
-
complete -c doing -l flag -f -n '__fish_doing_using_command select' -d Add\ flag\ to\ selected\ item\(s\)
|
283
|
-
complete -c doing -l force -f -n '__fish_doing_using_command select' -d Perform\ action\ without\ confirmation
|
284
|
-
complete -c doing -l move -s m -f -r -n '__fish_doing_using_command select' -d Move\ selected\ items\ to\ section
|
285
|
-
complete -c doing -l menu -f -n '__fish_doing_using_command select' -d Use\ --no-menu\ to\ skip\ the\ interactive\ menu
|
286
|
-
complete -c doing -l not -f -n '__fish_doing_using_command select' -d Select\ items\ that\ \*don\'t\*\ match\ search/tag\ filters
|
287
|
-
complete -c doing -l output -s o -f -r -n '__fish_doing_using_command select' -d Output\ entries\ to\ format
|
288
|
-
complete -c doing -l search -f -r -n '__fish_doing_using_command select' -d Initial\ search\ query\ for\ filtering
|
289
|
-
complete -c doing -l remove -s r -f -n '__fish_doing_using_command select' -d Reverse\ -c
|
290
|
-
complete -c doing -l section -s s -f -r -n '__fish_doing_using_command select' -d Select\ from\ a\ specific\ section
|
291
|
-
complete -c doing -l save_to -f -r -n '__fish_doing_using_command select' -d Save\ selected\ entries\ to\ file\ using\ --output\ format
|
292
|
-
complete -c doing -l tag -s t -f -r -n '__fish_doing_using_command select' -d Tag\ selected\ entries
|
293
|
-
complete -c doing -l exact -s x -f -n '__fish_doing_using_command select' -d Force\ exact\ search\ string\ matching
|
294
|
-
complete -c doing -l age -s a -f -r -n '__fish_doing_using_command show' -d Age
|
295
|
-
complete -c doing -l after -f -r -n '__fish_doing_using_command show' -d View\ entries\ newer\ than\ date
|
296
|
-
complete -c doing -l bool -s b -f -r -n '__fish_doing_using_command show' -d Tag\ boolean
|
297
|
-
complete -c doing -l before -f -r -n '__fish_doing_using_command show' -d View\ entries\ older\ than\ date
|
298
|
-
complete -c doing -l count -s c -f -r -n '__fish_doing_using_command show' -d Max\ count\ to\ show
|
299
|
-
complete -c doing -l case -f -r -n '__fish_doing_using_command show' -d Case\ sensitivity\ for\ search\ string\ matching\ \[\(c\)ase-sensitive
|
300
|
-
complete -c doing -l from -s f -f -r -n '__fish_doing_using_command show' -d Date\ range\ to\ show
|
301
|
-
complete -c doing -l interactive -s i -f -n '__fish_doing_using_command show' -d Select\ from\ a\ menu\ of\ matching\ entries\ to\ perform\ additional\ operations
|
302
|
-
complete -c doing -l not -f -n '__fish_doing_using_command show' -d Show\ items\ that\ \*don\'t\*\ match\ search/tag/date\ filters
|
303
|
-
complete -c doing -l output -s o -f -r -n '__fish_doing_using_command show' -d Output\ to\ export\ format
|
304
|
-
complete -c doing -l only_timed -f -n '__fish_doing_using_command show' -d Only\ show\ items\ with\ recorded\ time\ intervals
|
305
|
-
complete -c doing -l sort -s s -f -r -n '__fish_doing_using_command show' -d Sort\ order
|
306
|
-
complete -c doing -l search -f -r -n '__fish_doing_using_command show' -d Search\ filter
|
307
|
-
complete -c doing -l times -s t -f -n '__fish_doing_using_command show' -d Show\ time\ intervals\ on\ @done\ tasks
|
308
|
-
complete -c doing -l tag -f -r -n '__fish_doing_using_command show' -d Tag\ filter
|
309
|
-
complete -c doing -l tag_order -f -r -n '__fish_doing_using_command show' -d Tag\ sort\ direction
|
310
|
-
complete -c doing -l tag_sort -f -r -n '__fish_doing_using_command show' -d Sort\ tags\ by
|
311
|
-
complete -c doing -l totals -f -n '__fish_doing_using_command show' -d Show\ intervals\ with\ totals\ at\ the\ end\ of\ output
|
312
|
-
complete -c doing -l exact -s x -f -n '__fish_doing_using_command show' -d Force\ exact\ search\ string\ matching
|
313
|
-
complete -c doing -l output -s o -f -r -n '__fish_doing_using_command since' -d Output\ to\ export\ format
|
314
|
-
complete -c doing -l section -s s -f -r -n '__fish_doing_using_command since' -d Section
|
315
|
-
complete -c doing -l times -s t -f -n '__fish_doing_using_command since' -d Show\ time\ intervals\ on\ @done\ tasks
|
316
|
-
complete -c doing -l tag_sort -f -r -n '__fish_doing_using_command since' -d Sort\ tags\ by
|
317
|
-
complete -c doing -l totals -f -n '__fish_doing_using_command since' -d Show\ time\ totals\ at\ the\ end\ of\ output
|
318
|
-
complete -c doing -l autotag -s a -f -n '__fish_doing_using_command tag' -d Autotag\ entries\ based\ on\ autotag\ configuration\ in\ \~/
|
319
|
-
complete -c doing -l bool -f -r -n '__fish_doing_using_command tag' -d Boolean
|
320
|
-
complete -c doing -l count -s c -f -r -n '__fish_doing_using_command tag' -d How\ many\ recent\ entries\ to\ tag
|
321
|
-
complete -c doing -l case -f -r -n '__fish_doing_using_command tag' -d Case\ sensitivity\ for\ search\ string\ matching\ \[\(c\)ase-sensitive
|
322
|
-
complete -c doing -l date -s d -f -n '__fish_doing_using_command tag' -d Include\ current\ date/time\ with\ tag
|
323
|
-
complete -c doing -l force -f -n '__fish_doing_using_command tag' -d Don\'t\ ask\ permission\ to\ tag\ all\ entries\ when\ count\ is\ 0
|
324
|
-
complete -c doing -l interactive -s i -f -n '__fish_doing_using_command tag' -d Select\ item\(s\)\ to\ tag\ from\ a\ menu\ of\ matching\ entries
|
325
|
-
complete -c doing -l not -f -n '__fish_doing_using_command tag' -d Tag\ items\ that\ \*don\'t\*\ match\ search/tag\ filters
|
326
|
-
complete -c doing -l remove -s r -f -n '__fish_doing_using_command tag' -d Remove\ given\ tag\(s\)
|
327
|
-
complete -c doing -l regex -f -n '__fish_doing_using_command tag' -d Interpret\ tag\ string\ as\ regular\ expression
|
328
|
-
complete -c doing -l rename -f -r -n '__fish_doing_using_command tag' -d Replace\ existing\ tag\ with\ tag\ argument
|
329
|
-
complete -c doing -l section -s s -f -r -n '__fish_doing_using_command tag' -d Section
|
330
|
-
complete -c doing -l search -f -r -n '__fish_doing_using_command tag' -d Tag\ entries\ matching\ search\ filter
|
331
|
-
complete -c doing -l tag -f -r -n '__fish_doing_using_command tag' -d Tag\ the\ last\ X\ entries\ containing\ TAG
|
332
|
-
complete -c doing -l unfinished -s u -f -n '__fish_doing_using_command tag' -d Tag\ last\ entry
|
333
|
-
complete -c doing -l exact -s x -f -n '__fish_doing_using_command tag' -d Force\ exact\ search\ string\ matching
|
334
|
-
complete -c doing -l list -s l -f -n '__fish_doing_using_command template' -d List\ all\ available\ templates
|
335
|
-
complete -c doing -l after -f -r -n '__fish_doing_using_command today' -d View\ entries\ after\ specified\ time
|
336
|
-
complete -c doing -l before -f -r -n '__fish_doing_using_command today' -d View\ entries\ before\ specified\ time
|
337
|
-
complete -c doing -l output -s o -f -r -n '__fish_doing_using_command today' -d Output\ to\ export\ format
|
338
|
-
complete -c doing -l section -s s -f -r -n '__fish_doing_using_command today' -d Specify\ a\ section
|
339
|
-
complete -c doing -l times -s t -f -n '__fish_doing_using_command today' -d Show\ time\ intervals\ on\ @done\ tasks
|
340
|
-
complete -c doing -l tag_sort -f -r -n '__fish_doing_using_command today' -d Sort\ tags\ by
|
341
|
-
complete -c doing -l totals -f -n '__fish_doing_using_command today' -d Show\ time\ totals\ at\ the\ end\ of\ output
|
342
|
-
complete -c doing -l file -s f -f -r -n '__fish_doing_using_command undo' -d Specify\ alternate\ doing\ file
|
343
|
-
complete -c doing -l after -f -r -n '__fish_doing_using_command view' -d View\ entries\ newer\ than\ date
|
344
|
-
complete -c doing -l bool -s b -f -r -n '__fish_doing_using_command view' -d Tag\ boolean
|
345
|
-
complete -c doing -l before -f -r -n '__fish_doing_using_command view' -d View\ entries\ older\ than\ date
|
346
|
-
complete -c doing -l count -s c -f -r -n '__fish_doing_using_command view' -d Count\ to\ display
|
347
|
-
complete -c doing -l case -f -r -n '__fish_doing_using_command view' -d Case\ sensitivity\ for\ search\ string\ matching\ \[\(c\)ase-sensitive
|
348
|
-
complete -c doing -l color -f -n '__fish_doing_using_command view' -d Include\ colors\ in\ output
|
349
|
-
complete -c doing -l interactive -s i -f -n '__fish_doing_using_command view' -d Select\ from\ a\ menu\ of\ matching\ entries\ to\ perform\ additional\ operations
|
350
|
-
complete -c doing -l not -f -n '__fish_doing_using_command view' -d Show\ items\ that\ \*don\'t\*\ match\ search\ string
|
351
|
-
complete -c doing -l output -s o -f -r -n '__fish_doing_using_command view' -d Output\ to\ export\ format
|
352
|
-
complete -c doing -l only_timed -f -n '__fish_doing_using_command view' -d Only\ show\ items\ with\ recorded\ time\ intervals
|
353
|
-
complete -c doing -l section -s s -f -r -n '__fish_doing_using_command view' -d Section
|
354
|
-
complete -c doing -l search -f -r -n '__fish_doing_using_command view' -d Search\ filter
|
355
|
-
complete -c doing -l times -s t -f -n '__fish_doing_using_command view' -d Show\ time\ intervals\ on\ @done\ tasks
|
356
|
-
complete -c doing -l tag -f -r -n '__fish_doing_using_command view' -d Tag\ filter
|
357
|
-
complete -c doing -l tag_order -f -r -n '__fish_doing_using_command view' -d Tag\ sort\ direction
|
358
|
-
complete -c doing -l tag_sort -f -r -n '__fish_doing_using_command view' -d Sort\ tags\ by
|
359
|
-
complete -c doing -l totals -f -n '__fish_doing_using_command view' -d Show\ intervals\ with\ totals\ at\ the\ end\ of\ output
|
360
|
-
complete -c doing -l exact -s x -f -n '__fish_doing_using_command view' -d Force\ exact\ search\ string\ matching
|
361
|
-
complete -c doing -l column -s c -f -n '__fish_doing_using_command views' -d List\ in\ single\ column
|
362
|
-
complete -c doing -l after -f -r -n '__fish_doing_using_command wiki' -d Include\ entries\ newer\ than\ date
|
363
|
-
complete -c doing -l bool -s b -f -r -n '__fish_doing_using_command wiki' -d Tag\ boolean
|
364
|
-
complete -c doing -l before -f -r -n '__fish_doing_using_command wiki' -d Include\ entries\ older\ than\ date
|
365
|
-
complete -c doing -l from -s f -f -r -n '__fish_doing_using_command wiki' -d Date\ range\ to\ include
|
366
|
-
complete -c doing -l only_timed -f -n '__fish_doing_using_command wiki' -d Only\ show\ items\ with\ recorded\ time\ intervals
|
367
|
-
complete -c doing -l section -s s -f -r -n '__fish_doing_using_command wiki' -d Section\ to\ rotate
|
368
|
-
complete -c doing -l search -f -r -n '__fish_doing_using_command wiki' -d Search\ filter
|
369
|
-
complete -c doing -l tag -f -r -n '__fish_doing_using_command wiki' -d Tag\ filter
|
370
|
-
complete -c doing -l after -f -r -n '__fish_doing_using_command yesterday' -d View\ entries\ after\ specified\ time
|
371
|
-
complete -c doing -l before -f -r -n '__fish_doing_using_command yesterday' -d View\ entries\ before\ specified\ time
|
372
|
-
complete -c doing -l output -s o -f -r -n '__fish_doing_using_command yesterday' -d Output\ to\ export\ format
|
373
|
-
complete -c doing -l section -s s -f -r -n '__fish_doing_using_command yesterday' -d Specify\ a\ section
|
374
|
-
complete -c doing -l times -s t -f -n '__fish_doing_using_command yesterday' -d Show\ time\ intervals\ on\ @done\ tasks
|
375
|
-
complete -c doing -l tag_order -f -r -n '__fish_doing_using_command yesterday' -d Tag\ sort\ direction
|
376
|
-
complete -c doing -l tag_sort -f -r -n '__fish_doing_using_command yesterday' -d Sort\ tags\ by
|
377
|
-
complete -c doing -l totals -f -n '__fish_doing_using_command yesterday' -d Show\ time\ totals\ at\ the\ end\ of\ output
|
378
|
-
complete -f -c doing -s o -l output -x -n '__fish_doing_using_command config grep search on select show since today view yesterday' -a '(__fish_doing_export_plugins)'
|
@@ -7,7 +7,6 @@ module Doing
|
|
7
7
|
first = true
|
8
8
|
out = []
|
9
9
|
logic = []
|
10
|
-
need_export = []
|
11
10
|
|
12
11
|
@commands.each_with_index do |cmd, i|
|
13
12
|
@bar.advance
|
@@ -135,7 +134,7 @@ module Doing
|
|
135
134
|
end
|
136
135
|
|
137
136
|
def parse_option(option)
|
138
|
-
res = option.match(/(?:-(?<short>\w), )?(?:--(?:\[no-\])?(?<long
|
137
|
+
res = option.match(/(?:-(?<short>\w), )?(?:--(?:\[no-\])?(?<long>\w+)(?:=(?<arg>\w+))?)\s+- (?<desc>.*?)$/)
|
139
138
|
return nil unless res
|
140
139
|
{
|
141
140
|
short: res['short'],
|
@@ -80,7 +80,7 @@ module Doing
|
|
80
80
|
end
|
81
81
|
|
82
82
|
def parse_option(option)
|
83
|
-
res = option.match(/(?:-(?<short>\w), )?(?:--(?:\[no-\])?(?<long>
|
83
|
+
res = option.match(/(?:-(?<short>\w), )?(?:--(?:\[no-\])?(?<long>w+)(?:=(?<arg>\w+))?)\s+- (?<desc>.*?)$/)
|
84
84
|
return nil unless res
|
85
85
|
{
|
86
86
|
short: res['short'],
|
@@ -51,7 +51,7 @@ module Doing
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def parse_option(option)
|
54
|
-
res = option.match(/(?:-(?<short>\w), )?(?:--(?:\[no-\])?(?<long>
|
54
|
+
res = option.match(/(?:-(?<short>\w), )?(?:--(?:\[no-\])?(?<long>w+)(?:=(?<arg>\w+))?)\s+- (?<desc>.*?)$/)
|
55
55
|
return nil unless res
|
56
56
|
|
57
57
|
{
|