Skip to content

Commit

Permalink
0.1.14
Browse files Browse the repository at this point in the history
  • Loading branch information
mosop committed Jul 2, 2016
1 parent c6ac75c commit aeb6266
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ end
Model.parse %w(--goodbye) # raises "Goodbye, world!"
```

### Required Options
### Required Arguments and Options

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

```crystal
class Compile < Optarg::Model
arg "source_file", required: true
def run
Compiler.compile options.source_file
end
end
Compile.parse %w() # raises a Required exception.
```

### Minimum Length of Array

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

## Release Notes

* v0.1.14
* Required Arguments and Options
* Minimum Length of Array
* v0.1.13
* Accessible Argument
* v0.1.12
Expand Down
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: optarg
version: 0.1.13
version: 0.1.14

authors:
- mosop
Expand Down
2 changes: 1 addition & 1 deletion src/optarg/version.cr
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Optarg
VERSION = "0.1.13"
VERSION = "0.1.14"
end

0 comments on commit aeb6266

Please sign in to comment.