Skip to content

Commit

Permalink
Merge pull request #18 from Snailedlt/feature/update_readme_with_synt…
Browse files Browse the repository at this point in the history
…ax_highlighting

Add syntax highlighting to README.rst codeblocks
  • Loading branch information
nhoffman authored Apr 28, 2024
2 parents 05ca148 + bd8590d commit a02843c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ won't work as expected (or at all) in this simplistic implementation.
Installation
============

Get ``argparse.bash``::
Get ``argparse.bash``

.. code-block:: shell
wget https://raw.githubusercontent.com/nhoffman/argparse-bash/master/argparse.bash
chmod +x argparse.bash
Expand All @@ -36,7 +38,9 @@ sourcing ``argparse.bash`` in the examples below).
Usage
=====

Here's an example, ``example.sh``::
Here's an example, ``example.sh``

.. code-block:: bash
#!/usr/bin/env bash
Expand Down Expand Up @@ -112,7 +116,9 @@ Error messages::
example.sh: error: unrecognized arguments: -n baz
Executing ``argparse.bash`` (as opposed to sourcing it) prints a
script template to stdout::
script template to stdout
.. code-block:: bash
$ ./argparse.bash
#!/usr/bin/env bash
Expand Down

0 comments on commit a02843c

Please sign in to comment.