File tree 3 files changed +18
-3
lines changed
3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 176
176
Model.parse %w(--goodbye) # raises "Goodbye, world!"
177
177
```
178
178
179
- ### Required Options
179
+ ### Required Arguments and Options
180
180
181
181
``` crystal
182
182
class Profile < Optarg::Model
190
190
Birthday.parse %w() # raises a Required exception.
191
191
```
192
192
193
+ ``` crystal
194
+ class Compile < Optarg::Model
195
+ arg "source_file", required: true
196
+
197
+ def run
198
+ Compiler.compile options.source_file
199
+ end
200
+ end
201
+
202
+ Compile.parse %w() # raises a Required exception.
203
+ ```
204
+
193
205
### Minimum Length of Array
194
206
195
207
``` crystal
@@ -234,6 +246,9 @@ and see [Features](#features).
234
246
235
247
## Release Notes
236
248
249
+ * v0.1.14
250
+ * Required Arguments and Options
251
+ * Minimum Length of Array
237
252
* v0.1.13
238
253
* Accessible Argument
239
254
* v0.1.12
Original file line number Diff line number Diff line change 1
1
name : optarg
2
- version : 0.1.13
2
+ version : 0.1.14
3
3
4
4
authors :
5
5
- mosop
Original file line number Diff line number Diff line change 1
1
module Optarg
2
- VERSION = " 0.1.13 "
2
+ VERSION = " 0.1.14 "
3
3
end
You can’t perform that action at this time.
0 commit comments