Skip to content

Commit

Permalink
docs: fix bad anchors in the API docs (#1503)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenwinters authored and mleguen committed Dec 4, 2019
1 parent 0c666a6 commit 05324b4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/api.md
Expand Up @@ -193,6 +193,7 @@ var argv = require('yargs')
.argv
```

<a name="command"></a>
.command(cmd, desc, [builder], [handler])
-----------------------------------------
.command(cmd, desc, [module])
Expand Down Expand Up @@ -1010,9 +1011,9 @@ var argv = require('yargs')
.argv
```

.option(key, [opt])
<a name="option"></a>.option(key, [opt])
-----------------
.options(key, [opt])
<a name="options"></a>.options(key, [opt])
------------------

This method can be used to make yargs aware of options that _could_
Expand Down Expand Up @@ -1175,7 +1176,7 @@ from this location.
------------

`.positional()` allows you to configure a command's positional arguments
with an API similar to [`.option()`](#optionkey-opt). `.positional()`
with an API similar to [`.option()`](#option). `.positional()`
should be called in a command's builder function, and is not
available on the top-level yargs instance.

Expand Down Expand Up @@ -1440,7 +1441,7 @@ Set a usage message to show which commands to use. Inside `message`, the string
present script similar to how `$0` works in bash or perl.

If the optional `desc`/`builder`/`handler` are provided, `.usage()`
acts an an alias for [`.command()`](#commandmodule). This allows you to use
acts an an alias for [`.command()`](#command). This allows you to use
`.usage()` to configure the [default command](/docs/advanced.md#default-commands) that will be run as an entry-point to your application and allows you
to provide configuration for the positional arguments accepted by your program:

Expand Down

0 comments on commit 05324b4

Please sign in to comment.