Replace double backticks with single backticks - Part 2 out of ~6 (#17206)
This commit is contained in:
parent
ac8166ab3d
commit
82d8e9bff3
10 changed files with 136 additions and 136 deletions
|
|
@ -12,7 +12,7 @@
|
|||
## Unstable API.
|
||||
##
|
||||
## This module implements an event system that is not dependent on external
|
||||
## graphical toolkits. It was originally called ``NimEE`` because
|
||||
## graphical toolkits. It was originally called `NimEE` because
|
||||
## it was inspired by Python's PyEE module. There are two ways you can use
|
||||
## events: one is a python-inspired way; the other is more of a C-style way.
|
||||
##
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
# distribution, for details about the copyright.
|
||||
#
|
||||
|
||||
## This module is deprecated, ``import os`` instead.
|
||||
## This module is deprecated, `import os` instead.
|
||||
{.deprecated: "import os.nim instead".}
|
||||
|
||||
import os
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@
|
|||
##
|
||||
## Supported syntax:
|
||||
##
|
||||
## 1. short options - ``-abcd``, where a, b, c, d are names
|
||||
## 2. long option - ``--foo:bar``, ``--foo=bar`` or ``--foo``
|
||||
## 1. short options - `-abcd`, where a, b, c, d are names
|
||||
## 2. long option - `--foo:bar`, `--foo=bar` or `--foo`
|
||||
## 3. argument - everything else
|
||||
|
||||
{.deprecated: "Use the 'parseopt' module instead".}
|
||||
|
|
@ -29,16 +29,16 @@ type
|
|||
CmdLineKind* = enum ## the detected command line token
|
||||
cmdEnd, ## end of command line reached
|
||||
cmdArgument, ## argument detected
|
||||
cmdLongOption, ## a long option ``--option`` detected
|
||||
cmdShortOption ## a short option ``-c`` detected
|
||||
cmdLongOption, ## a long option `--option` detected
|
||||
cmdShortOption ## a short option `-c` detected
|
||||
OptParser* =
|
||||
object of RootObj ## this object implements the command line parser
|
||||
cmd: seq[string]
|
||||
pos: int
|
||||
remainingShortOptions: string
|
||||
kind*: CmdLineKind ## the detected command line token
|
||||
key*, val*: string ## key and value pair; ``key`` is the option
|
||||
## or the argument, ``value`` is not "" if
|
||||
key*, val*: string ## key and value pair; `key` is the option
|
||||
## or the argument, `value` is not "" if
|
||||
## the option was given a value
|
||||
|
||||
proc initOptParser*(cmdline: seq[string]): OptParser {.rtl.} =
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
|
||||
## This module is a deprecated alias for the ``sha1`` module.
|
||||
## This module is a deprecated alias for the `sha1` module.
|
||||
{.deprecated.}
|
||||
|
||||
include "../std/sha1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue