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]

(From OE-Core rev: e1c96125ea674509fbc9b36dc671b7a53bd848ac)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ed Bartosh 2016-12-08 17:27:23 +02:00 committed by Richard Purdie
parent 8dfc417780
commit e8fbd7158b
1 changed files with 9 additions and 2 deletions

View File

@ -22,8 +22,15 @@
#
if [ $# -lt 1 -o "$1" = '--help' -o "$1" = '-h' ] ; then
echo "Usage: $0 <native tool> [parameters]"
exit 1
echo 'oe-run-native: error: the following arguments are required: <native tool>'
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`