argrs

Crates.ioargrs
lib.rsargrs
version0.1.2
sourcesrc
created_at2023-04-21 10:14:01.893671
updated_at2023-04-21 16:24:23.77613
descriptionA simple program to list the arguments passed on the command line.
homepage
repositoryhttps://github.com/FedericoStra/argrs
max_upload_size
id845173
size5,405
Federico Stra (FedericoStra)

documentation

README

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`
Commit count: 13

cargo fmt