Branch: refs/heads/master
Home: https://github.com/openSUSE/osc2
Commit: 84e7012f2fd33304f47d83bea1dd53abe93e5ace
https://github.com/openSUSE/osc2/commit/84e7012f2fd33304f47d83bea1dd53abe93e...
Author: Marcus Huewe
Date: 2012-08-17 (Fri, 17 Aug 2012)
Changed paths:
M osc/cli/description.py
Log Message:
-----------
- osc.cli.description: added support for optional positional arguments
This is needed in order to support context sensitive cmds.
Example:
args = 'foo api://project/package bar'
args_opt = [1] # list of indices of the optional positional args
Commit: cb5b3668f92905d0beed19f499fccda8d55e4020
https://github.com/openSUSE/osc2/commit/cb5b3668f92905d0beed19f499fccda8d55e...
Author: Marcus Huewe
Date: 2012-08-17 (Fri, 17 Aug 2012)
Changed paths:
M osc/cli/cli.py
Log Message:
-----------
- osc.cli.cli: added "illegal_options" decorator
It checks whether some illegal options were specified.
Example:
"osc list api://foo/pkg --revision 123" <- revision option is allowed
"osc list api://foo --revision 123" <- revision option is not allowed
That is if no package was specified a different method is called which is
decorated with "illegal_options('revision')".
Commit: 8101c374803cf4e4638fbc6936e40dcbd19e0b09
https://github.com/openSUSE/osc2/commit/8101c374803cf4e4638fbc6936e40dcbd19e...
Author: Marcus Huewe
Date: 2012-08-17 (Fri, 17 Aug 2012)
Changed paths:
M osc/cli/list/list.py
M osc/cli/list/ui.py
Log Message:
-----------
- osc.cli.list: use "illegal_options" decorator, make positional argument for list cmd optional
Compare: https://github.com/openSUSE/osc2/compare/c995ecd89076...8101c374803c