Skip to content

Commit

Permalink
fix: abbreviation only works for flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Irineu333 committed Mar 2, 2024
1 parent 0a08349 commit 5b25235
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/export.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $ envm export <tags>
## Options

### `--output` or `-o`
### `--output`

Specify the output directory of the environments file; if not specified, will be prompt for it during export.

Expand Down
2 changes: 1 addition & 1 deletion docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ $ envm install [options]

## Options

### `--target` or `-t`
### `--target`

Sets the path of the target properties file (`target`). If not specified, **EnvManager** will prompt for it during installation.

Expand Down
2 changes: 1 addition & 1 deletion docs/remove.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $ envm remove <key1> <key2> ... [options]

## Options

### `--tag` or `-t`
### `--tag`
Specifies the target environment. In the absence of this option, the current environment is used.

```shell
Expand Down
2 changes: 1 addition & 1 deletion docs/set.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $ envm set KEY1=VALUE1 KEY2=VALUE2 ... [options]

## Options

### `--tag` or `-t`
### `--tag`
Allows specifying the target environment for the properties. In the absence of this option, the current environment is used.

```shell
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/com/neo/envmanager/command/Export.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Export : CliktCommand(
) {

private val output by option(
names = arrayOf("-o", "--output"),
names = arrayOf("--output"),
help = "Output directory"
).file(
canBeDir = true,
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/com/neo/envmanager/command/Install.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Install : CliktCommand(help = "Install environment control") {
).flag()

private val target by option(
names = arrayOf("-t", "--target"),
names = arrayOf("--target"),
help = "Target (environment properties file)"
).file(
mustExist = true,
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/com/neo/envmanager/command/Remove.kt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Remove : CliktCommand(
).multiple()

private val tag by option(
names = arrayOf("-t", "--tag"),
names = arrayOf("--tag"),
help = "Specified environment tag; current environment is used by default"
)

Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/com/neo/envmanager/command/Setter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Setter : CliktCommand(
).properties(required = true)

private val tag by option(
names = arrayOf("-t", "--tag"),
names = arrayOf("--tag"),
help = "Specified environment tag; current environment is used by default"
)

Expand Down

0 comments on commit 5b25235

Please sign in to comment.