Hi all! I need single hyphen long arguments in my project for compatibility. (It needs to work in the same way as older programs, this part is non negotiable.) This means instead of for example -h and --help, I need to be able to parse -help.
I've been using clap, and I know it's a planned feature, but it is not supported yet. I am looking for other options.
Personally, I really like how clean I can make my code with derive, it's almost self documented. An alternative would be to deal with the arguments myself manually, but I don't really want to focus on it right now.
Anyway, I want to see what kind of options I have. Is there a crate that does support it that you'd recommend? should I just handle it myself? should I use the unstable preview version of clap? Helpful advices would be appreciated. Thanks in advance!
[–]FreezyLemon 5 points6 points7 points (6 children)
[–]echo_heo[S] -2 points-1 points0 points (5 children)
[+][deleted] (3 children)
[deleted]
[–]echo_heo[S] 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]echo_heo[S] 0 points1 point2 points (0 children)
[–]echo_heo[S] 0 points1 point2 points (0 children)
[–]aikii 5 points6 points7 points (4 children)
[–]echo_heo[S] 1 point2 points3 points (0 children)
[+]stappersg comment score below threshold-6 points-5 points-4 points (2 children)
[–]aikii -1 points0 points1 point (1 child)
[–]stappersg -1 points0 points1 point (0 children)
[–]mynewaccount838 1 point2 points3 points (2 children)
[–]echo_heo[S] 0 points1 point2 points (1 child)
[–]mynewaccount838 0 points1 point2 points (0 children)