< 返回版块

sharkLoc 发表于 2023-01-06 16:57

Tags:clap

各位,clap 包的命令行参数说明内容很长,怎么设置换行啊? 类似这种,在下面另起一行,谢谢!

$ demo --help
A simple to use, efficient, and full-featured Command Line Argument Parser

Usage: demo[EXE] [OPTIONS] --name <NAME>

Options:
  -n, --name <NAME>    Name of the person to greet
                       new line xxx  这里怎么实现换行显示
                       other line xxxx
  -c, --count <COUNT>  Number of times to greet [default: 1]
  -h, --help           Print help information
  -V, --version        Print version information

评论区

写评论
作者 sharkLoc 2023-01-06 20:05

谢谢,周末愉快!

--
👇
Nayaka: https://stackoverflow.com/questions/73050387/how-to-provide-multiple-line-help-message-with-clap

Nayaka 2023-01-06 17:47

https://stackoverflow.com/questions/73050387/how-to-provide-multiple-line-help-message-with-clap

1 共 2 条评论, 1 页