Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed description for --quiet and code-block formatting under StoreOption #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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::

Expand Down Expand Up @@ -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::
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code-block:: rust


let mut x: Option<i32> = None;
ap.refer(&mut x).add_option(&["-x"], StoreOption, "Set var x");

Expand Down