Owez / argi

Argument parsing for the future 🚀
https://crates.io/crates/argi
Apache License 2.0
128 stars 1 forks source link

Does it handle non-UTF8 filenames on Unix-like systems? #15

Open vi opened 3 years ago

vi commented 3 years ago

Can it be used, for example, to pass entire command line array to a subprocess unmodified without restrictions, like xargs? Does it start from std::env::args (simpler, but makes this task impossible) or from std::env::args_os (proper way, but tricky)?

Owez commented 3 years ago

Currently the launch method uses std::env::args but i will consider transitioning into args_os as nothing too complex is done to strings other than strip_prefix

vi commented 3 years ago

nothing too complex is done to strings other than strip_prefix

It can still be somewhat tricky. You may want to review lexopt for how it's done.