[oe-commits] [openembedded-core] 25/63: oe-trim-schemas: create usage output
git at git.openembedded.org
git at git.openembedded.org
Tue Dec 13 22:56:43 UTC 2016
rpurdie pushed a commit to branch master
in repository openembedded-core.
commit a9fac12157ed434a6711de1af77eda1f4a8e9e8a
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
AuthorDate: Thu Dec 8 18:56:49 2016 +0200
oe-trim-schemas: create usage output
Created usage output for oe-trim-schemas script.
[YOCTO #10751]
Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
scripts/oe-trim-schemas | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/scripts/oe-trim-schemas b/scripts/oe-trim-schemas
index 66a1b8d..7c199ef 100755
--- a/scripts/oe-trim-schemas
+++ b/scripts/oe-trim-schemas
@@ -18,6 +18,15 @@ def children (elem, name=None):
l = [e for e in l if e.tag == name]
return l
+if len(sys.argv) < 2 or sys.argv[1] in ('-h', '--help'):
+ print('oe-trim-schemas: error: the following arguments are required: schema\n'
+ 'Usage: oe-trim-schemas schema\n\n'
+ 'OpenEmbedded trim schemas - remove unneeded schema locale translations\n'
+ ' from gconf schema files\n\n'
+ 'arguments:\n'
+ ' schema gconf schema file to trim\n')
+ sys.exit(2)
+
xml = etree.parse(sys.argv[1])
for schema in child(xml.getroot(), "schemalist").getchildren():
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list