2
這是Trollop,紅寶石選項解析寶石 v0.0.1a輸出的例子產出紅寶石寶石Trollop
Options:
--input, -i <s>: Input file location (required)
--output, -o <s>: Output file destination (required)
--cores, -c <i>: Number of cores (default: 4)
--threshold, -t <f>: Threshold (default: 1.0)
--version, -v: Print version and exit
--help, -h: Show this message
它的面世是最好的選擇解析器,因爲它是如此之小,整齊,但我真不不喜歡幫助信息的中心理由。在我使用過的程序中,我從來沒有見過這種輸出,並且會更喜歡它將選項對齊到左側,然後將描述放在第二列的左側。是否有可能做到這一點? Cheers
編輯: 在最新版本的trollop中,現在使用左對齊格式。這很棒!儘管我在短時間內習慣了中心論證。謝謝