From 0398d65738e6a329735194779b16d89e67a33640 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sun, 27 Sep 2026 08:43:19 +0200 Subject: [PATCH] fix usage missing one parameter --- src/albentohandy | 9 +++++---- src/man/albentohandy.1 | 11 ++++++----- tests/albentohandy.bats | 18 ++++++++++-------- 3 files changed, 21 insertions(+), 17 deletions(-) diff --git a/src/albentohandy b/src/albentohandy index 82da219..43b41d4 100755 --- a/src/albentohandy +++ b/src/albentohandy @@ -16,10 +16,11 @@ useage() echo "SYNOPSIS" echo " albentohandy [-3fho]" echo "OPTIONS" - echo " -3 convert to mp3" - echo " -f convert to flac with cover" - echo " -h show this usage" - echo " -o convert to opus" + echo " -3 convert to mp3" + echo " -f convert to flac with cover" + echo " -h show this usage" + echo " -i optional input list (default albumlist)" + echo " -o convert to opus" } check_programs() diff --git a/src/man/albentohandy.1 b/src/man/albentohandy.1 index ca4ff61..04e40a1 100644 --- a/src/man/albentohandy.1 +++ b/src/man/albentohandy.1 @@ -1,4 +1,4 @@ -.TH albentohandy 1 2026-09-26 +.TH albentohandy 1 2026-09-27 .SH NAME albentohandy - convert flac to ogg, mp3, opus or flac from music collection @@ -9,9 +9,10 @@ albentohandy [-3fho]" .SH OPTIONS .P .EX --3 convert to mp3" --f convert to flac with cover" --h show this usage" --o convert to opus" +-3 convert to mp3 +-f convert to flac with cover" +-h show this usage" +-i optional input list (default albumlist) +-o convert to opus" .EE .P \ No newline at end of file diff --git a/tests/albentohandy.bats b/tests/albentohandy.bats index f348924..898f538 100755 --- a/tests/albentohandy.bats +++ b/tests/albentohandy.bats @@ -588,10 +588,11 @@ teardown() { assert_line --index 2 "SYNOPSIS" assert_line --index 3 " albentohandy [-3fho]" assert_line --index 4 "OPTIONS" - assert_line --index 5 " -3 convert to mp3" - assert_line --index 6 " -f convert to flac with cover" - assert_line --index 7 " -h show this usage" - assert_line --index 8 " -o convert to opus" + assert_line --index 5 " -3 convert to mp3" + assert_line --index 6 " -f convert to flac with cover" + assert_line --index 7 " -h show this usage" + assert_line --index 8 " -i optional input list (default albumlist)" + assert_line --index 9 " -o convert to opus" } # bats test_tags=albentohandy:usage @@ -609,8 +610,9 @@ teardown() { assert_line --index 4 "SYNOPSIS" assert_line --index 5 " albentohandy [-3fho]" assert_line --index 6 "OPTIONS" - assert_line --index 7 " -3 convert to mp3" - assert_line --index 8 " -f convert to flac with cover" - assert_line --index 9 " -h show this usage" - assert_line --index 10 " -o convert to opus" + assert_line --index 7 " -3 convert to mp3" + assert_line --index 8 " -f convert to flac with cover" + assert_line --index 9 " -h show this usage" + assert_line --index 10 " -i optional input list (default albumlist)" + assert_line --index 11 " -o convert to opus" } \ No newline at end of file -- 2.47.3