Skip to content

Commit

Permalink
README: Add example for default values
Browse files Browse the repository at this point in the history
  • Loading branch information
nh2 committed Sep 16, 2016
1 parent 20a2328 commit 6e1e210
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -153,11 +153,12 @@ strOption
( long "output"
<> short 'o'
<> metavar "FILE"
<> value "out.txt"
<> help "Write output to FILE" )
```

creates a regular option with a string argument (which can be referred to as
`FILE` in the help text and documentation), a long name "output" and a short
`FILE` in the help text and documentation), default value "out.txt", a long name "output" and a short
name "o". See below for more information on the builder syntax and modifiers.

A regular option can return an object of any type, and takes a *reader*
Expand Down

0 comments on commit 6e1e210

Please sign in to comment.