Add ls as an alternative alias for listing

This commit is contained in:
Orhun Parmaksız 2023-02-05 00:07:27 +03:00
parent ab675e8dbb
commit c88d121ecc
No known key found for this signature in database
GPG Key ID: F83424824B3E4B90
3 changed files with 3 additions and 2 deletions

View File

@ -23,6 +23,7 @@ Categories Used:
### Improvements
- 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

View File

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

View File

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