Merge pull request #360 from orhun/feat/add_ls_alias

Add `ls` as an alternative alias for listing
This commit is contained in:
figsoda 2023-02-04 17:50:55 -05:00 committed by GitHub
commit 52ea0fa18b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -23,6 +23,7 @@ Categories Used:
### Improvements ### Improvements
- Multi-threaded compression for gzip and snappy using gzp [\#348](https://github.com/ouch-org/ouch/pull/348) ([figsoda](https://github.com/figsoda)) - Multi-threaded compression for gzip and snappy using gzp [\#348](https://github.com/ouch-org/ouch/pull/348) ([figsoda](https://github.com/figsoda))
- Add `ls` as an alternative alias for listing [\#360](https://github.com/ouch-org/ouch/pull/360) ([orhun](https://github.com/orhun))
### Bug Fixes ### Bug Fixes

View File

@ -35,7 +35,7 @@ Ouch has three main subcommands:
- `ouch decompress` (alias `d`) - `ouch decompress` (alias `d`)
- `ouch compress` (alias `c`) - `ouch compress` (alias `c`)
- `ouch list` (alias `l`) - `ouch list` (alias `l` or `ls`)
## Decompressing ## Decompressing

View File

@ -72,7 +72,7 @@ pub enum Subcommand {
output_dir: Option<PathBuf>, output_dir: Option<PathBuf>,
}, },
/// List contents of an archive /// List contents of an archive
#[command(visible_alias = "l")] #[command(visible_aliases = ["l", "ls"])]
List { List {
/// Archives whose contents should be listed /// Archives whose contents should be listed
#[arg(required = true, num_args = 1..)] #[arg(required = true, num_args = 1..)]