From 5cddf32c6c91869be6c95d18385a93c7a3c1e651 Mon Sep 17 00:00:00 2001 From: Samuel Marks Date: Thu, 26 Jan 2017 01:31:27 +1100 Subject: [PATCH] Fixed description for `--quiet` and code-block formatting under `StoreOption` --- README.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 3586207..6ff5168 100644 --- a/README.rst +++ b/README.rst @@ -126,7 +126,7 @@ You may add multiple options for the same variable:: .add_option(&["-v", "--verbose"], StoreTrue, "Be verbose") .add_option(&["-q", "--quiet"], StoreFalse, - "Be verbose"); + "Be quiet"); Similarly positional arguments are added:: @@ -261,6 +261,8 @@ The following actions are available out of the box. They may be used in either As ``Store``, but wrap value with ``Some`` for use with ``Option``. For example: +.. code-block:: + let mut x: Option = None; ap.refer(&mut x).add_option(&["-x"], StoreOption, "Set var x");