#arguments #error #long #deal #size

argmax

Rust library to deal with 'argument too long' errors

5 releases (3 breaking)

0.4.0 Jun 16, 2025
0.3.1 Sep 4, 2022
0.3.0 May 25, 2022
0.2.0 May 15, 2022
0.1.0 Jan 23, 2022

#169 in Command-line interface

Download history 8687/week @ 2025-10-23 6808/week @ 2025-10-30 5213/week @ 2025-11-06 6051/week @ 2025-11-13 6918/week @ 2025-11-20 5142/week @ 2025-11-27 6466/week @ 2025-12-04 9653/week @ 2025-12-11 4489/week @ 2025-12-18 2981/week @ 2025-12-25 5770/week @ 2026-01-01 9706/week @ 2026-01-08 7898/week @ 2026-01-15 8218/week @ 2026-01-22 10181/week @ 2026-01-29 8595/week @ 2026-02-05

36,618 downloads per month
Used in 4 crates

MIT/Apache

16KB
270 lines

argmax

Version info CICD

argmax is a library that allows Rust applications to avoid Argument list too long errors (E2BIG) by providing a std::process::Command wrapper with a

fn try_arg<S: AsRef<OsStr>>(&mut self, arg: S) -> io::Result<&mut Self>

function that returns a proper Error if arg would overflow the maximum size.

Resources

This library draws inspiration from the following sources. The implementation is based on the corresponding functionality in bfs [1].

License

Licensed under either of

at your option.

Dependencies

~2MB
~38K SLoC