1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-15 14:53:53 -05:00

Add man page (#1438)

`rbenv help` without arguments now runs `man rbenv` on systems where man is present.
This commit is contained in:
Mislav Marohnić
2022-09-27 02:17:50 +02:00
committed by GitHub
parent 7c7c4dc11c
commit 22ee5d4175
6 changed files with 265 additions and 1 deletions

View File

@@ -9,6 +9,12 @@ load test_helper
assert_line "Some useful rbenv commands are:"
}
@test "usage flag" {
run rbenv-help --usage
assert_success
assert_output "Usage: rbenv <command> [<args>]"
}
@test "invalid command" {
run rbenv-help hello
assert_failure "rbenv: no such command \`hello'"