diff options
Diffstat (limited to 'src/is_built')
-rwxr-xr-x | src/is_built | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/is_built b/src/is_built index 80d0719..6def815 100755 --- a/src/is_built +++ b/src/is_built @@ -1,18 +1,19 @@ #!/usr/bin/env bash -cmd=${0##*/} usage() { - echo "Usage: $cmd [-h] pkgname [pkgver]" + print "Usage: %s [-h] PKGNAME [PKGVER]" "${0##*/}" "${0##*/}" + print 'Detect iv a given package (version) is already in the repos' echo - echo "Detect if a given package version is already in repos" - echo "Assuming you want greater or equal." + prose "If a version is specified, it assumedx that you want a greater or + equal version." echo - echo "Example usage: $cmd 'pcre' '20'" + prose "Example usage:" + print " $ %s 'pcre' '20'" "${0##*/}" echo - echo "Exit status:" - echo " 0: The package is built" - echo " 1: The package has not built" - echo " >1: There was an error" + print "Exit status:" + print " 0: The package is built" + print " 1: The package has not built" + print " >1: There was an error" } while getopts 'h' arg; do |