Skip to contentSkip to conversation

oe-run-native: standardize usage output

PATCH New Ed Bartosh 1 participant 1 message Dec 8, 2016

lore
Share & tools
lore

Ed Bartosh

author
#0 lore raw

PATCH 1/1 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]

---
 scripts/oe-run-native | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
scripts/oe-run-native +9 -2
index 496e34f..7e26ea3 100755
@@ -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`
Signature · 1 line
2.1.4