mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 12:49:01 +02:00
update.py: error out with unexpected arguments
It's easy to forget you need to use -l to specify the list of layers to update and previously we just ignored unused arguments, so check for them and error out if present. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
parent
25f4acaa46
commit
714bc8e39f
1
TODO
1
TODO
|
@ -2,7 +2,6 @@ TODO:
|
|||
|
||||
* Duplication of first maintainer when editing to add a second?
|
||||
* Try to re-use existing recipe record with same PN instead of deleting and re-creating (if within same layer)
|
||||
* Update script should error out with extra unused parameters - too easy to forget to use -l with layer list
|
||||
* meta-arago-extras is preferred over meta-networking e.g. for crda; probably need an explicit field for priority order
|
||||
* Update script does not report which layer failed with -q when fetch fails
|
||||
* Document macros for URL fields
|
||||
|
|
|
@ -179,6 +179,10 @@ def main():
|
|||
|
||||
|
||||
options, args = parser.parse_args(sys.argv)
|
||||
if len(args) > 1:
|
||||
logger.error('unexpected argument "%s"' % args[1])
|
||||
parser.print_help()
|
||||
sys.exit(1)
|
||||
|
||||
# Get access to our Django model
|
||||
newpath = os.path.abspath(os.path.dirname(os.path.abspath(sys.argv[0])) + '/..')
|
||||
|
|
Loading…
Reference in New Issue
Block a user