snarkVM
snarkVM copied to clipboard
Update clap to 4.0
Colored help output is currently not supported, but there are plans to work around it.
In addition, run cargo update as a drive-by.
CC https://github.com/AleoHQ/snarkVM/issues/986.
@ljedrz how can we reenable the colored outputs for clap?
setting = clap::AppSettings::ColoredHelp
Relevant info about Clap 4.* coloring - https://github.com/clap-rs/clap/issues/4132#issuecomment-1253849056
Colors seem to have caused some issues and thus were removed for now. I've tried applying them using different clap means, but they didn't work.
Do we know if clap has a timeline for adding support for colors back in?
AFAIK not yet; however, during my search I stumbled upon an ANSI color feature, which we might be able to use to have colors sooner. I'll look into it.
I did take a look, and it doesn't seem doable with derive. I guess the update can wait to 4.x if we want to keep the help colors.
I'll close this PR for now and wait for 4.x to be released with colors. Thanks @ljedrz for being proactive about this.