v: minor change in the output for an unknown help topic (#13927)
parent
719a3b5de3
commit
1211b2e941
|
@ -38,10 +38,11 @@ pub fn print_and_exit(topic string) {
|
||||||
|
|
||||||
fn known_topics(topicdir string) string {
|
fn known_topics(topicdir string) string {
|
||||||
mut res := []string{}
|
mut res := []string{}
|
||||||
res << 'Known help topics:'
|
res << 'Known help topics: '
|
||||||
topic_files := os.glob(os.join_path(topicdir, '*.txt')) or { [] }
|
topic_files := os.glob(os.join_path(topicdir, '*.txt')) or { [] }
|
||||||
mut topics := topic_files.map(os.file_name(it).replace('.txt', ''))
|
mut topics := topic_files.map(os.file_name(it).replace('.txt', ''))
|
||||||
topics.sort()
|
topics.sort()
|
||||||
res << topics.join(', ')
|
res << topics.join(', ')
|
||||||
|
res << '.'
|
||||||
return res.join('')
|
return res.join('')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue