diff --git a/README.md b/README.md index 0b31c77..ed9bdf9 100644 --- a/README.md +++ b/README.md @@ -176,7 +176,7 @@ end Model.parse %w(--goodbye) # raises "Goodbye, world!" ``` -### Required Options +### Required Arguments and Options ```crystal class Profile < Optarg::Model @@ -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 @@ -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 diff --git a/shard.yml b/shard.yml index 5a90af6..c546328 100644 --- a/shard.yml +++ b/shard.yml @@ -1,5 +1,5 @@ name: optarg -version: 0.1.13 +version: 0.1.14 authors: - mosop diff --git a/src/optarg/version.cr b/src/optarg/version.cr index 002e719..434a1d6 100644 --- a/src/optarg/version.cr +++ b/src/optarg/version.cr @@ -1,3 +1,3 @@ module Optarg - VERSION = "0.1.13" + VERSION = "0.1.14" end