diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2019-02-06 03:23:13 +0000 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2019-02-06 03:37:11 +0000 |
commit | 00809d736ae9a153946db417dbb54dbdaeadefc0 (patch) | |
tree | 50330f1fba61cefb524144b951ebd2a808a2d777 /lsinitramfs | |
parent | 94e05dd4c404b2c2b67cb78715b35f5892bec2d9 (diff) |
Make manual pages and usage messages more consistent
* Don't use angle brackets around parameters
* Show all options in manual page synopses if possible
* Make the usage summary line match the manual page synopsis,
excluding the -h option
* List all options in usage messages
* Refer to manual pages from usage messages
* Include one blank line at start and end of usage messages
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'lsinitramfs')
-rwxr-xr-x | lsinitramfs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lsinitramfs b/lsinitramfs index f86ad9c..03ee517 100755 --- a/lsinitramfs +++ b/lsinitramfs @@ -4,7 +4,16 @@ set -eu usage() { - echo "Usage: $(basename "$0") [-l] <initramfs file>" + cat << EOF + +Usage: lsinitramfs [-l] initramfs-file... + +Options: + -l Display long and more verbose listing of initramfs content + +See lsinitramfs(8) for further details. + +EOF } if [ "$#" -eq 0 ] ; then |