)]}'
{"openstackclient/common/quota.py":[{"author":{"_account_id":17776,"name":"Reedip","email":"reedip.banerjee@gmail.com","username":"Reedip"},"change_message_id":"b558eeefdde4ed2569c06033defe3fc7c25496f7","unresolved":false,"context_lines":[{"line_number":145,"context_line":"        parser.add_argument("},{"line_number":146,"context_line":"            \u0027project\u0027,"},{"line_number":147,"context_line":"            metavar\u003d\u0027\u003cproject/class\u003e\u0027,"},{"line_number":148,"context_line":"            nargs\u003d\u0027?\u0027,"},{"line_number":149,"context_line":"            help\u003d\u0027Show quotas for this project or class (name or ID)\u0027,"},{"line_number":150,"context_line":"        )"},{"line_number":151,"context_line":"        type_group \u003d parser.add_mutually_exclusive_group()"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a122d0e_80083b2a","line":148,"updated":"2016-04-22 05:38:01.000000000","message":"Instead of putting nargs , why cant we keep project optional ( like if user does not pass project, then the current project info is retrieved, but if the user passes the project option then whatever follows the project keyword if displayed)\n\nThe reason for this is the complexity of nargs( http://docs.openstack.org/developer/python-neutronclient/devref/cli_option_guideline.html#avoid-using-nargs-in-positional-or-optional-arguments)","commit_id":"27024d70af4756cb6e4b210b025ed7427541f773"},{"author":{"_account_id":8410,"name":"Richard Theis","email":"rtheis@us.ibm.com","username":"rtheis"},"change_message_id":"330c6c3df62961828d6e8711f50d5f97503e8d61","unresolved":false,"context_lines":[{"line_number":145,"context_line":"        parser.add_argument("},{"line_number":146,"context_line":"            \u0027project\u0027,"},{"line_number":147,"context_line":"            metavar\u003d\u0027\u003cproject/class\u003e\u0027,"},{"line_number":148,"context_line":"            nargs\u003d\u0027?\u0027,"},{"line_number":149,"context_line":"            help\u003d\u0027Show quotas for this project or class (name or ID)\u0027,"},{"line_number":150,"context_line":"        )"},{"line_number":151,"context_line":"        type_group \u003d parser.add_mutually_exclusive_group()"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a122d0e_9d309509","line":148,"in_reply_to":"1a122d0e_80083b2a","updated":"2016-04-22 11:40:42.000000000","message":"Project is not optional today.  Do you have an alternative to nargs in mind that doesn\u0027t change the command behavior?  Also, I don\u0027t think using nargs here introduces any problems as pointed out in the devref.\n\n\n$ openstack quota show\nusage: openstack quota show [-h] [-f {json,shell,table,value,yaml}]\n                            [-c COLUMN] [--max-width \u003cinteger\u003e] [--noindent]\n                            [--prefix PREFIX] [--class | --default]\n                            \u003cproject/class\u003e\nopenstack quota show: error: too few arguments","commit_id":"27024d70af4756cb6e4b210b025ed7427541f773"}]}
