The current code example will not compile if you use the clap v3.0.0-beta.2, the version indicated above it. In this version of clap, the Arg struct no longer has the with_name or the help methods. Instead, use the new and about methods respectively:
The current code example will not compile if you use the
clap v3.0.0-beta.2
, the version indicated above it. In this version ofclap
, theArg
struct no longer has thewith_name
or thehelp
methods. Instead, use thenew
andabout
methods respectively:Also, the newer
short
method now accepts achar
type rather than&str
as a parameter.