mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-07 21:58:41 +02:00
cmdln: Order options and arguments by the order of decorators in the source code
This commit is contained in:
@@ -21,7 +21,7 @@ def option(*args, **kwargs):
|
||||
if not hasattr(f, "options"):
|
||||
f.options = []
|
||||
new_args = [i for i in args if i]
|
||||
f.options.append((new_args, kwargs))
|
||||
f.options.insert(0, (new_args, kwargs))
|
||||
return f
|
||||
return decorate
|
||||
|
||||
|
Reference in New Issue
Block a user