Skip to content

Commit a376063

Browse files
use different default
test default ran into a different bug so im avoiding that
1 parent bdc82a0 commit a376063

8 files changed

+8
-8
lines changed

docs_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func buildExtendedTestCommand() *cli.Command {
6565
&cli.StringFlag{
6666
Name: "dir",
6767
Value: pwd(),
68-
DefaultText: "$PWD",
68+
DefaultText: "\".\"",
6969
},
7070
},
7171
Commands: []*cli.Command{{

testdata/expected-doc-full.man

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ app [first_arg] [second_arg]
4545
\fB--another-flag, -b\fP: another usage text
4646

4747
.PP
48-
\fB--dir\fP="": (default: $PWD)
48+
\fB--dir\fP="": (default: ".")
4949

5050
.PP
5151
\fB--flag, --fl, -f\fP="":

testdata/expected-doc-full.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ app [first_arg] [second_arg]
2727

2828
**--another-flag, -b**: another usage text
2929

30-
**--dir**="": (default: $PWD)
30+
**--dir**="": (default: ".")
3131

3232
**--flag, --fl, -f**="":
3333

testdata/expected-doc-no-authors.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ app [first_arg] [second_arg]
2727

2828
**--another-flag, -b**: another usage text
2929

30-
**--dir**="": (default: $PWD)
30+
**--dir**="": (default: ".")
3131

3232
**--flag, --fl, -f**="":
3333

testdata/expected-doc-no-commands.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ app [first_arg] [second_arg]
2727

2828
**--another-flag, -b**: another usage text
2929

30-
**--dir**="": (default: $PWD)
30+
**--dir**="": (default: ".")
3131

3232
**--flag, --fl, -f**="":
3333

testdata/expected-doc-no-usagetext.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ greet [GLOBAL OPTIONS] [command [COMMAND OPTIONS]] [ARGUMENTS...]
2727

2828
**--another-flag, -b**: another usage text
2929

30-
**--dir**="": (default: $PWD)
30+
**--dir**="": (default: ".")
3131

3232
**--flag, --fl, -f**="":
3333

testdata/expected-tabular-markdown-custom-app-path.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Global flags:
1919
| `--socket="…"` (`-s`) | some 'usage' text | `value` | *none* |
2020
| `--flag="…"` (`--fl`, `-f`) | | | *none* |
2121
| `--another-flag` (`-b`) | another usage text | `false` | `EXAMPLE_VARIABLE_NAME` |
22-
| `--dir="…"` | | `$PWD` | *none* |
22+
| `--dir="…"` | | `"."` | *none* |
2323

2424
### `config` command (aliases: `c`)
2525

testdata/expected-tabular-markdown-full.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Global flags:
1919
| `--socket="…"` (`-s`) | some 'usage' text | `value` | *none* |
2020
| `--flag="…"` (`--fl`, `-f`) | | | *none* |
2121
| `--another-flag` (`-b`) | another usage text | `false` | `EXAMPLE_VARIABLE_NAME` |
22-
| `--dir="…"` | | `$PWD` | *none* |
22+
| `--dir="…"` | | `"."` | *none* |
2323

2424
### `config` command (aliases: `c`)
2525

0 commit comments

Comments
 (0)