Skip to content

What is the style for argument values (blue in bright color scheme -a=THIS_STYLE) #399

Answered by pacak
eugenesvk asked this question in Q&A
Discussion options

You must be logged in to vote

I see = here, could this be it?

Yeah. write_shortlong deals with --via part, = goes as plain text, <fDMETHOD> is gets rendered with .metavar.

At the moment .argument method takes &'static str as metavar so you can't customize it with Doc, but you can still put some ANSI sequence inside to override it to your liking.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@eugenesvk
Comment options

@eugenesvk
Comment options

@pacak
Comment options

Answer selected by eugenesvk
@eugenesvk
Comment options

@eugenesvk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants