)]}'
{"searchlightclient/osc/v1/search.py":[{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"f153bb51c7a49cafde3f1501e2acb449b914576d","unresolved":false,"context_lines":[{"line_number":56,"context_line":"            metavar\u003d\"\u003call\u003e | [\u003cfield\u003e,...]\","},{"line_number":57,"context_line":"            help\u003d\"Whether to display the source details, defaults to false. \""},{"line_number":58,"context_line":"                 \"\u0027all\u0027 to fetch all fields from source, or specify the \""},{"line_number":59,"context_line":"                 \"fields combined with \u0027,\u0027 to return the fields you want.\""},{"line_number":60,"context_line":"        )"},{"line_number":61,"context_line":"        return parser"},{"line_number":62,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a68dd71_c7545aff","line":59,"updated":"2016-01-22 23:44:02.000000000","message":"All actually could be a field name in the source.  Let\u0027s make this work so that if --source is passed with no arguments that it will show the full source, but that a field is passed it will act like you coded below.\n\nThe following code worked for me:\n\n        parser.add_argument(\n            \"--source\",\n            nargs\u003d\u0027?\u0027,\n            const\u003d\u0027all\u0027,\n            metavar\u003d\"[\u003cfield\u003e,...]\",\n            help\u003d\"Whether to display the json source. If not specified, \"\n                 \"it will not be displayed. If specified with no argument, \"\n                 \"the full source will be displayed. Otherwise, specify the \"\n                 \"fields combined with \u0027,\u0027 to return the fields you want.\"\n                 \"It is recommended that you use the --max-width argument \"\n                 \"with this option.\"\n\nThis gives this output:\n\nhttp://paste.openstack.org/show/484754/\n\nWill ask Steve to look as well.","commit_id":"d5d8f1c3e46e1d8fa8a7e9cc9e0b8c0511d9cbe0"},{"author":{"_account_id":4428,"name":"Liyingjun","email":"yinjalee@163.com","username":"liyingjun"},"change_message_id":"64ee1e93a3c87c4db9b89cb25655b246e75714b2","unresolved":false,"context_lines":[{"line_number":56,"context_line":"            metavar\u003d\"\u003call\u003e | [\u003cfield\u003e,...]\","},{"line_number":57,"context_line":"            help\u003d\"Whether to display the source details, defaults to false. \""},{"line_number":58,"context_line":"                 \"\u0027all\u0027 to fetch all fields from source, or specify the \""},{"line_number":59,"context_line":"                 \"fields combined with \u0027,\u0027 to return the fields you want.\""},{"line_number":60,"context_line":"        )"},{"line_number":61,"context_line":"        return parser"},{"line_number":62,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a68dd71_e88fcf72","line":59,"in_reply_to":"9a68dd71_c7545aff","updated":"2016-01-25 01:19:55.000000000","message":"Done","commit_id":"d5d8f1c3e46e1d8fa8a7e9cc9e0b8c0511d9cbe0"}]}
