Skip to content

Commit aeb6266

Browse files
author
mosop
committed
0.1.14
1 parent c6ac75c commit aeb6266

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

README.md

+16-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ end
176176
Model.parse %w(--goodbye) # raises "Goodbye, world!"
177177
```
178178

179-
### Required Options
179+
### Required Arguments and Options
180180

181181
```crystal
182182
class Profile < Optarg::Model
@@ -190,6 +190,18 @@ end
190190
Birthday.parse %w() # raises a Required exception.
191191
```
192192

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+
193205
### Minimum Length of Array
194206

195207
```crystal
@@ -234,6 +246,9 @@ and see [Features](#features).
234246

235247
## Release Notes
236248

249+
* v0.1.14
250+
* Required Arguments and Options
251+
* Minimum Length of Array
237252
* v0.1.13
238253
* Accessible Argument
239254
* v0.1.12

shard.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: optarg
2-
version: 0.1.13
2+
version: 0.1.14
33

44
authors:
55
- mosop

src/optarg/version.cr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Optarg
2-
VERSION = "0.1.13"
2+
VERSION = "0.1.14"
33
end

0 commit comments

Comments
 (0)