)]}'
{"keystone/cli.py":[{"author":{"_account_id":6,"name":"Joe Heck","email":"heckj@mac.com","username":"heckj"},"change_message_id":"5da9bfeaec137b974625609fdceeb1f07170dead","unresolved":false,"context_lines":[{"line_number":145,"context_line":"         project\u003d\u0027keystone\u0027,"},{"line_number":146,"context_line":"         usage\u003d\u0027%(prog)s COMMAND\u0027,"},{"line_number":147,"context_line":"         default_config_files\u003dconfig_files)"},{"line_number":148,"context_line":"    CONF.command.cmd_class.main()"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAMH%2F%2FxOc%3D","line":148,"updated":"2012-11-26 17:35:01.000000000","message":"this looses the option to print out what commands are available and doesn\u0027t print out general usage if too few options are made available.\n\nWith the new setup, is there a way to at least do the equiv of \"keystone-manage --help\" to show output here?","commit_id":"b64cfd1ec8e8fe19f2f4f2c3549d1b034cdef0cd"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"5e39c56fec72283a81e3cd77b24cf78055b910c3","unresolved":false,"context_lines":[{"line_number":145,"context_line":"         project\u003d\u0027keystone\u0027,"},{"line_number":146,"context_line":"         usage\u003d\u0027%(prog)s COMMAND\u0027,"},{"line_number":147,"context_line":"         default_config_files\u003dconfig_files)"},{"line_number":148,"context_line":"    CONF.command.cmd_class.main()"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAMH%2F%2Fw%2FQ%3D","line":148,"in_reply_to":"AAAAMH%2F%2Fw%2F4%3D","updated":"2012-11-26 19:39:35.000000000","message":"Right, we\u0027re just using stock argparse help support for all this\n\nSo:\n\n  $\u003e keystone-manage foo\n  usage: keystone-manage COMMAND\n  keystone-manage: error: argument command: invalid choice: \u0027foo\u0027 (choose from \u0027db_sync\u0027, \u0027export_legacy_catalog\u0027, \u0027import_legacy\u0027, \u0027import_nova_auth\u0027, \u0027pki_setup\u0027)\n\n  $\u003e keystone-manage --help\n  usage: keystone-manage COMMAND\n\n  optional arguments:\n  ...\n  Commands:\n    {db_sync,export_legacy_catalog,import_legacy,import_nova_auth,pki_setup}\n                          Available commands\n      db_sync             Sync the database.\n      export_legacy_catalog\n                        Export the service catalog from a legacy database.\n      import_legacy       Import a legacy database.\n      import_nova_auth    Import a dump of nova auth data into keystone.\n      pki_setup           Set up Key pairs and certificates for token signing\n                          and verification.\n\n  $\u003e keystone-manage import_legacy --help\n  usage: keystone-manage COMMAND import_legacy [-h] old_db\n\n  positional arguments:\n    old_db\n\n  optional arguments:\n    -h, --help  show this help message and exit","commit_id":"b64cfd1ec8e8fe19f2f4f2c3549d1b034cdef0cd"},{"author":{"_account_id":6,"name":"Joe Heck","email":"heckj@mac.com","username":"heckj"},"change_message_id":"d1bd99ebaa7c2c1303d4cdb7fcd4c7a860e366e1","unresolved":false,"context_lines":[{"line_number":145,"context_line":"         project\u003d\u0027keystone\u0027,"},{"line_number":146,"context_line":"         usage\u003d\u0027%(prog)s COMMAND\u0027,"},{"line_number":147,"context_line":"         default_config_files\u003dconfig_files)"},{"line_number":148,"context_line":"    CONF.command.cmd_class.main()"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAMH%2F%2Fw%2BM%3D","line":148,"in_reply_to":"AAAAMH%2F%2Fw%2FQ%3D","updated":"2012-11-26 19:42:58.000000000","message":"The one I ran into almost immediately:\n\n  $\u003e keystone-manage\n  usage: keystone-manage COMMAND\n  keystone-manage: error: too few arguments\n\nI like the change, just looking for a way around this last tidbit to get help displayed.","commit_id":"b64cfd1ec8e8fe19f2f4f2c3549d1b034cdef0cd"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"c8439e602c13491570f282c33240d95a23d559c4","unresolved":false,"context_lines":[{"line_number":145,"context_line":"         project\u003d\u0027keystone\u0027,"},{"line_number":146,"context_line":"         usage\u003d\u0027%(prog)s COMMAND\u0027,"},{"line_number":147,"context_line":"         default_config_files\u003dconfig_files)"},{"line_number":148,"context_line":"    CONF.command.cmd_class.main()"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAMH%2F%2Fw%2F4%3D","line":148,"in_reply_to":"AAAAMH%2F%2FxOc%3D","updated":"2012-11-26 19:35:08.000000000","message":"keystone-manage --help actually works better for me after this change (before, it only showed options, but not the subcommands).\n\nHowever, erroneous commands, such as \"keystone-manage asdf\" provided better feedback before, IMO (namely because the command descriptions were previously included with the error feedback).","commit_id":"b64cfd1ec8e8fe19f2f4f2c3549d1b034cdef0cd"}]}
