From: Ed Bartosh Date: Thu, 8 Dec 2016 15:27:23 +0000 (+0200) Subject: oe-run-native: standardize usage output X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~23352 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1c96125ea674509fbc9b36dc671b7a53bd848ac;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git oe-run-native: standardize usage output Made usage output of oe-run-native to look similar to the output of other oe scripts. [YOCTO #10751] Signed-off-by: Ed Bartosh Signed-off-by: Ross Burton --- diff --git a/scripts/oe-run-native b/scripts/oe-run-native index 496e34f70ef..7e26ea3fccc 100755 --- a/scripts/oe-run-native +++ b/scripts/oe-run-native @@ -22,8 +22,15 @@ # if [ $# -lt 1 -o "$1" = '--help' -o "$1" = '-h' ] ; then - echo "Usage: $0 [parameters]" - exit 1 + echo 'oe-run-native: error: the following arguments are required: ' + echo 'Usage: oe-run-native tool [parameters]' + echo '' + echo 'OpenEmbedded run-native - runs native tools' + echo '' + echo 'arguments:' + echo ' tool Native tool to run' + echo '' + exit 2 fi SYSROOT_SETUP_SCRIPT=`which oe-find-native-sysroot 2> /dev/null`