ArgParser in extrautils and others
Created by: pi-pi3
From what I've seen none of the extrautils are using the ArgParser
that is present within coreutils. For unification, clarification and extensibility purposes I think it might be useful to rewrite parts of extrautils to implement ArgParser.
For that the entire ArgParser
might need to be moved to libextra to avoid making coreutils a dependency of extrautils. Most, if not all, core- and extrautils are already using libextra, so it wouldn't be a problem.
Additionally, coreutils' lib.rs implements some other useful functions, like format_system_time
, format_time
and to_human_readable_string
, which would also be useful in extrautils and other repositories.
tl;dr: ArgParser
, format_system_time
, format_time
and to_human_readable_string
should be located in libextra instead of coreutils, so they can be used inside other repositories, like extrautils. Also, extrautils should use those functionalities.
If this deems to be neccessary or useful, I'm willing to implement it.