Skip to content

Commit a22f536

Browse files
authored
Merge pull request #22 from eunomie/docs-help
Use -h/--help instead of -d/--docs to print help
2 parents 4a17313 + 8d864fd commit a22f536

19 files changed

+482
-273
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ $ docker runx decorate alpine --tag NAMESPACE/REPOSITORY
5454
You can then display the embedded readme:
5555

5656
```
57-
$ dockedr runx NAMESPACE/REPOSITORY --docs
57+
$ docker runx NAMESPACE/REPOSITORY --help
5858
```
5959

6060
Or run the `hello` action:
@@ -69,7 +69,7 @@ See more examples in the [examples](/examples) directory.
6969

7070
### Usage
7171

72-
> `docker runx IMAGE --docs`
72+
> `docker runx IMAGE --help`
7373
>
7474
> Display the embedded documentation of an image and print the list of available actions.
7575
@@ -81,7 +81,7 @@ See more examples in the [examples](/examples) directory.
8181
>
8282
> Run a specific action on an image.
8383
84-
> `docker runx IMAGE ACTION --docs`
84+
> `docker runx IMAGE ACTION --help`
8585
>
8686
> Display a detailed documentation of a specific action. This will also display the list of available options, shell scripts, environment variables.
8787

docs/index.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ $ docker runx decorate alpine --tag NAMESPACE/REPOSITORY
4747
You can then display the embedded readme:
4848

4949
```
50-
$ dockedr runx NAMESPACE/REPOSITORY --docs
50+
$ docker runx NAMESPACE/REPOSITORY --help
5151
```
5252

5353
Or run the `hello` action:
@@ -62,7 +62,7 @@ See more examples in the [examples](https://github.com/eunomie/docker-runx/tree/
6262

6363
### Usage
6464

65-
> `docker runx IMAGE --docs`
65+
> `docker runx IMAGE --help`
6666
>
6767
> Display the embedded documentation of an image and print the list of available actions.
6868
@@ -74,7 +74,7 @@ See more examples in the [examples](https://github.com/eunomie/docker-runx/tree/
7474
>
7575
> Run a specific action on an image.
7676
77-
> `docker runx IMAGE ACTION --docs`
77+
> `docker runx IMAGE ACTION --help`
7878
>
7979
> Display a detailed documentation of a specific action. This will also display the list of available options, shell scripts, environment variables.
8080

docs/reference/docker_runx.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@ plink: docker.yaml
77
cname:
88
- docker runx cache
99
- docker runx decorate
10-
- docker runx help
1110
- docker runx version
1211
clink:
1312
- docker_runx_cache.yaml
1413
- docker_runx_decorate.yaml
15-
- docker_runx_help.yaml
1614
- docker_runx_version.yaml
1715
options:
1816
- option: ask
@@ -30,6 +28,17 @@ options:
3028
value_type: bool
3129
default_value: "false"
3230
description: Print the documentation of the image
31+
deprecated: true
32+
hidden: true
33+
experimental: false
34+
experimentalcli: false
35+
kubernetes: false
36+
swarm: false
37+
- option: help
38+
shorthand: h
39+
value_type: bool
40+
default_value: "false"
41+
description: Print usage or runx image/action documentation
3342
deprecated: false
3443
hidden: false
3544
experimental: false

docs/reference/docker_runx_cache.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,18 @@ cname:
99
clink:
1010
- docker_runx_cache_df.yaml
1111
- docker_runx_cache_prune.yaml
12+
inherited_options:
13+
- option: help
14+
shorthand: h
15+
value_type: bool
16+
default_value: "false"
17+
description: Print usage or runx image/action documentation
18+
deprecated: false
19+
hidden: false
20+
experimental: false
21+
experimentalcli: false
22+
kubernetes: false
23+
swarm: false
1224
deprecated: false
1325
hidden: false
1426
experimental: false

docs/reference/docker_runx_cache_df.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ long: Show disk usage
44
usage: docker runx cache df
55
pname: docker runx cache
66
plink: docker_runx_cache.yaml
7+
inherited_options:
8+
- option: help
9+
shorthand: h
10+
value_type: bool
11+
default_value: "false"
12+
description: Print usage or runx image/action documentation
13+
deprecated: false
14+
hidden: false
15+
experimental: false
16+
experimentalcli: false
17+
kubernetes: false
18+
swarm: false
719
deprecated: false
820
hidden: false
921
experimental: false

docs/reference/docker_runx_cache_prune.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@ options:
2828
experimentalcli: false
2929
kubernetes: false
3030
swarm: false
31+
inherited_options:
32+
- option: help
33+
shorthand: h
34+
value_type: bool
35+
default_value: "false"
36+
description: Print usage or runx image/action documentation
37+
deprecated: false
38+
hidden: false
39+
experimental: false
40+
experimentalcli: false
41+
kubernetes: false
42+
swarm: false
3143
deprecated: false
3244
hidden: false
3345
experimental: false

docs/reference/docker_runx_decorate.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,18 @@ options:
5555
experimentalcli: false
5656
kubernetes: false
5757
swarm: false
58+
inherited_options:
59+
- option: help
60+
shorthand: h
61+
value_type: bool
62+
default_value: "false"
63+
description: Print usage or runx image/action documentation
64+
deprecated: false
65+
hidden: false
66+
experimental: false
67+
experimentalcli: false
68+
kubernetes: false
69+
swarm: false
5870
deprecated: false
5971
hidden: false
6072
experimental: false

docs/reference/docker_runx_version.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ long: Show Docker RunX version information
44
usage: docker runx version
55
pname: docker runx
66
plink: docker_runx.yaml
7+
inherited_options:
8+
- option: help
9+
shorthand: h
10+
value_type: bool
11+
default_value: "false"
12+
description: Print usage or runx image/action documentation
13+
deprecated: false
14+
hidden: false
15+
experimental: false
16+
experimentalcli: false
17+
kubernetes: false
18+
swarm: false
719
deprecated: false
820
hidden: false
921
experimental: false

docs/reference/runx.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,19 @@ Docker Run, better
55

66
### Subcommands
77

8-
| Name | Description |
9-
|:-------------------------------|:-------------------------------------------------|
10-
| [`cache`](runx_cache.md) | Manage Docker RunX cache and temporary files |
11-
| [`decorate`](runx_decorate.md) | Decorate an image by attaching a runx manifest |
12-
| [`help`](runx_help.md) | Display information about the available commands |
13-
| [`version`](runx_version.md) | Show Docker RunX version information |
8+
| Name | Description |
9+
|:-------------------------------|:-----------------------------------------------|
10+
| [`cache`](runx_cache.md) | Manage Docker RunX cache and temporary files |
11+
| [`decorate`](runx_decorate.md) | Decorate an image by attaching a runx manifest |
12+
| [`version`](runx_version.md) | Show Docker RunX version information |
1413

1514

1615
### Options
1716

1817
| Name | Type | Default | Description |
1918
|:---------------|:--------------|:--------|:------------------------------------------------------------------|
2019
| `--ask` | `bool` | | Do not read local configuration option values and always ask them |
21-
| `-d`, `--docs` | `bool` | | Print the documentation of the image |
20+
| `-h`, `--help` | `bool` | | Print usage or runx image/action documentation |
2221
| `-l`, `--list` | `bool` | | List available actions |
2322
| `--opt` | `stringArray` | | Set an option value |
2423
| `-y`, `--yes` | `bool` | | Do not check flags before running the command |

docs/reference/runx_cache.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ Manage Docker RunX cache and temporary files
1111
| [`prune`](runx_cache_prune.md) | Remove cache entries not accessed recently |
1212

1313

14+
### Options
15+
16+
| Name | Type | Default | Description |
17+
|:---------------|:-------|:--------|:-----------------------------------------------|
18+
| `-h`, `--help` | `bool` | | Print usage or runx image/action documentation |
19+
1420

1521
<!---MARKER_GEN_END-->
1622

0 commit comments

Comments
 (0)