Skip to content

Commit 6b7a68a

Browse files
authored
refactor(cli): support a short variant (-w) for --working-dir (#606)
* refactor(cli): support a short variant (`-w`) for `--working-dir` * docs(cli): update documentation to match the arguments
1 parent 0858b5b commit 6b7a68a

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
## Unreleased
1818

1919
- Fix scale update on transitioning between screens with different DPI.
20+
- Support a short variant (`-w`) for `--working-dir` argument
2021

2122
## 0.1.8
2223

docs/versioned_docs/version-0.0.x/command-line-interface.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ A hardware-accelerated GPU terminal emulator powered by WebGPU, focusing to run
1212
Usage: rio [OPTIONS]
1313

1414
Options:
15-
-e, --command <COMMAND>... Command and args to execute (must be last argument)
16-
--working-dir <WORKING_DIR> Start the shell in the specified working directory
17-
-h, --help Print help
18-
-V, --version Print version
15+
-e, --command <COMMAND>... Command and args to execute (must be last argument)
16+
-w, --working-dir <WORKING_DIR> Start the shell in the specified working directory
17+
-h, --help Print help
18+
-V, --version Print version
1919
```
2020

2121
The options "-e" and "--command" executes the command and closes the terminal right way after the execution.

frontends/rioterm/src/cli.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub struct TerminalOptions {
2727
pub command: Vec<String>,
2828

2929
/// Start the shell in the specified working directory.
30-
#[clap(long, value_hint = ValueHint::FilePath)]
30+
#[clap(short, long, value_hint = ValueHint::FilePath)]
3131
pub working_dir: Option<String>,
3232
}
3333

0 commit comments

Comments
 (0)