mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Make help and usage setup standards-compliant
This commit is contained in:
parent
99dfb8549f
commit
bc18d5341c
6
build
6
build
@ -32,7 +32,13 @@ usage() {
|
|||||||
echo -e "Build output files are collected at '../jellyfin-build/<platform>'."
|
echo -e "Build output files are collected at '../jellyfin-build/<platform>'."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Show usage on stderr with exit 1 on argless
|
||||||
if [[ -z $1 ]]; then
|
if [[ -z $1 ]]; then
|
||||||
|
usage >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
# Show usage if -h or --help are specified in the args
|
||||||
|
if [[ $@ =~ '-h' || $@ =~ '--help' ]]; then
|
||||||
usage
|
usage
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user