#command-line-arguments #arg #command #arguments #cli

app argrs

A simple program to list the arguments passed on the command line

3 releases

0.1.2 Apr 21, 2023
0.1.1 Apr 21, 2023
0.1.0 Apr 21, 2023

#1336 in Command line utilities

BSD-3-Clause

4KB

argrs

crates.io docs.rs GitHub Dependencies status BSD-3-Clause license

A simple program to list the arguments passed on the command line.

Ported to Rust from args.

Demo

$ argrs helps you debug command line arguments
0: `argrs`
1: `helps`
2: `you`
3: `debug`
4: `command`
5: `line`
6: `arguments`

Usage

Simply call argrs with whatever command line arguments and it'll print them. This can be useful to verify commands generated with find/fd before executing them, for example

$ fd -tf -X argrs wc -l
0: `argrs`
1: `wc`
2: `-l`
3: `./Cargo.lock`
4: `./LICENSE`
5: `./README.md`
6: `./src/main.rs`
7: `./Cargo.toml`

No runtime deps