]> code.ossystems Code Review - openembedded-core.git/commitdiff
oe-run-native: standardize usage output
authorEd Bartosh <ed.bartosh@linux.intel.com>
Thu, 8 Dec 2016 15:27:23 +0000 (17:27 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 13 Dec 2016 22:47:29 +0000 (22:47 +0000)
Made usage output of oe-run-native to look similar to the
output of other oe scripts.

[YOCTO #10751]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/oe-run-native

index 496e34f70efe599d9eb41ec6f897284f1070ca14..7e26ea3fccce7dc4b994a04941fef60812d5f9c7 100755 (executable)
 #
 
 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`