)]}'
{"id":"openocd~master~Icefa87746156e6e8758026c0fdc5e02b440b3aaa","project":"openocd","branch":"master","hashtags":[],"change_id":"Icefa87746156e6e8758026c0fdc5e02b440b3aaa","subject":"command: on syntax error, run \u0027usage\u0027 inside the same cmd_ctx","status":"MERGED","created":"2025-10-24 13:29:41.000000000","updated":"2025-11-22 19:03:37.000000000","submitted":"2025-11-22 19:03:37.000000000","submitter":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"total_comment_count":0,"unresolved_comment_count":0,"has_review_started":true,"submission_id":"9185","meta_rev_id":"e0e8ee2c879474a8138fc41bbe562b0bfe3fd523","_number":9185,"owner":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"actions":{},"labels":{"Verified":{"approved":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"all":[{"value":0,"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},{"value":0,"_account_id":1002047,"name":"Evgeniy Naydanov","email":"eugnay@gmail.com","username":"en-sc"},{"tag":"autogenerated:gerrit:merged","value":1,"date":"2025-11-22 19:03:37.000000000","permitted_voting_range":{"min":1,"max":1},"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]}],"values":{"-1":"Fails"," 0":"No score","+1":"Verified"},"description":"","default_value":0},"Code-Review":{"approved":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"all":[{"tag":"autogenerated:gerrit:merged","value":2,"date":"2025-11-22 19:03:37.000000000","permitted_voting_range":{"min":2,"max":2},"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},{"tag":"autogenerated:gerrit:merged","value":1,"date":"2025-11-22 19:03:37.000000000","permitted_voting_range":{"min":1,"max":1},"_account_id":1002047,"name":"Evgeniy Naydanov","email":"eugnay@gmail.com","username":"en-sc"},{"value":0,"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]}],"values":{"-2":"This shall not be merged","-1":"I would prefer this is not merged as is"," 0":"No score","+1":"Looks good to me, but someone else must approve","+2":"Looks good to me, approved"},"description":"","default_value":0}},"removable_reviewers":[],"reviewers":{"REVIEWER":[{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},{"_account_id":1002047,"name":"Evgeniy Naydanov","email":"eugnay@gmail.com","username":"en-sc"}]},"pending_reviewers":{},"reviewer_updates":[{"updated":"2025-10-24 13:34:42.000000000","updated_by":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"reviewer":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"state":"CC"},{"updated":"2025-10-24 14:05:47.000000000","updated_by":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"reviewer":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"state":"REVIEWER"},{"updated":"2025-11-10 08:50:51.000000000","updated_by":{"_account_id":1002047,"name":"Evgeniy Naydanov","email":"eugnay@gmail.com","username":"en-sc"},"reviewer":{"_account_id":1002047,"name":"Evgeniy Naydanov","email":"eugnay@gmail.com","username":"en-sc"},"state":"REVIEWER"}],"messages":[{"id":"daa0e9822fd0a2cf4e31643d2e4b7445f062d916","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"real_author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"date":"2025-10-24 13:29:41.000000000","message":"Uploaded patch set 1.","accounts_in_message":[],"_revision_number":1},{"id":"badd36456779e40bbcfed1939a352dabf12a3527","tag":"autogenerated:jenkins-gerrit-trigger","author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"real_author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"date":"2025-10-24 14:05:47.000000000","message":"Patch Set 1: Verified+1\n\nBuild Successful \n\nhttps://build.openocd.org/job/openocd-gerrit-build/21234/ : SUCCESS\n\nhttps://build.openocd.org/job/openocd-gerrit/22113/ : SUCCESS","accounts_in_message":[],"_revision_number":1},{"id":"e41c3d37c34770f64a7a6355134e747308e57175","author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"real_author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"date":"2025-10-24 14:28:15.000000000","message":"Patch Set 1: Code-Review+1","accounts_in_message":[],"_revision_number":1},{"id":"5d9ea42ab2fd1fefaeeb15c11afc15edae4172ed","author":{"_account_id":1002047,"name":"Evgeniy Naydanov","email":"eugnay@gmail.com","username":"en-sc"},"real_author":{"_account_id":1002047,"name":"Evgeniy Naydanov","email":"eugnay@gmail.com","username":"en-sc"},"date":"2025-11-10 08:50:51.000000000","message":"Patch Set 1: Code-Review+1","accounts_in_message":[],"_revision_number":1},{"id":"bd6b27b80d8fc73a5fad764aedfe887d9b5405ed","author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"real_author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"date":"2025-11-22 19:03:33.000000000","message":"Patch Set 1: Code-Review+2","accounts_in_message":[],"_revision_number":1},{"id":"e0e8ee2c879474a8138fc41bbe562b0bfe3fd523","tag":"autogenerated:gerrit:merged","author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"real_author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"date":"2025-11-22 19:03:37.000000000","message":"Change has been successfully cherry-picked as fcce5d52d9afd6c7fa04da72534486a3a96cc178","accounts_in_message":[],"_revision_number":2}],"current_revision":"fcce5d52d9afd6c7fa04da72534486a3a96cc178","revisions":{"fcce5d52d9afd6c7fa04da72534486a3a96cc178":{"kind":"REWORK","_number":2,"created":"2025-11-22 19:03:37.000000000","uploader":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"ref":"refs/changes/85/9185/2","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/85/9185/2","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/85/9185/2 \u0026\u0026 git checkout -b change-9185 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/85/9185/2 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/85/9185/2 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/85/9185/2 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/85/9185/2","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/85/9185/2 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"586c8981b15f4bd4f1248a8b44f611d6fca177a6","subject":"command: let \u0027help\u0027 and \u0027usage\u0027 to use command_print()"}],"author":{"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","date":"2025-10-24 08:07:10.000000000","tz":120},"committer":{"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","date":"2025-11-22 19:03:37.000000000","tz":0},"subject":"command: on syntax error, run \u0027usage\u0027 inside the same cmd_ctx","message":"command: on syntax error, run \u0027usage\u0027 inside the same cmd_ctx\n\nWe want the output of the \u0027usage\u0027 command to become the output of\nthe current command that has triggered the syntax error.\n\nDon\u0027t use command_run_linef(), as it will first print the message,\nthen pass it to the current command that will use it again.\nReplace command_run_linef() with Jim_Eval..().\n\nChange-Id: Icefa87746156e6e8758026c0fdc5e02b440b3aaa\nSigned-off-by: Antonio Borneo \u003cborneo.antonio@gmail.com\u003e\nReviewed-on: https://review.openocd.org/c/openocd/+/9185\nTested-by: jenkins\nReviewed-by: Evgeniy Naydanov \u003ceugnay@gmail.com\u003e\n"}},"23e0ff69391c927692be1a57765daddc40ea933b":{"kind":"REWORK","_number":1,"created":"2025-10-24 13:29:41.000000000","uploader":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"ref":"refs/changes/85/9185/1","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/85/9185/1","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/85/9185/1 \u0026\u0026 git checkout -b change-9185 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/85/9185/1 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/85/9185/1 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/85/9185/1 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/85/9185/1","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/85/9185/1 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"6144c9fff5dcc34472d1509d5cc304fdf1b19866","subject":"command: let \u0027help\u0027 and \u0027usage\u0027 to use command_print()"}],"author":{"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","date":"2025-10-24 08:07:10.000000000","tz":120},"committer":{"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","date":"2025-10-24 13:27:11.000000000","tz":120},"subject":"command: on syntax error, run \u0027usage\u0027 inside the same cmd_ctx","message":"command: on syntax error, run \u0027usage\u0027 inside the same cmd_ctx\n\nWe want the output of the \u0027usage\u0027 command to become the output of\nthe current command that has triggered the syntax error.\n\nDon\u0027t use command_run_linef(), as it will first print the message,\nthen pass it to the current command that will use it again.\nReplace command_run_linef() with Jim_Eval..().\n\nChange-Id: Icefa87746156e6e8758026c0fdc5e02b440b3aaa\nSigned-off-by: Antonio Borneo \u003cborneo.antonio@gmail.com\u003e\n"}}},"requirements":[],"submit_records":[{"rule_name":"gerrit~DefaultSubmitRule","status":"CLOSED","labels":[{"label":"Verified","status":"OK","applied_by":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]}},{"label":"Code-Review","status":"OK","applied_by":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"}}]}],"submit_requirements":[{"name":"Verified","status":"SATISFIED","is_legacy":true,"submittability_expression_result":{"expression":"label:Verified\u003dMAX -label:Verified\u003dMIN","fulfilled":true,"status":"PASS","passing_atoms":["label:Verified\u003dMAX","-label:Verified\u003dMIN"],"failing_atoms":[]}},{"name":"Code-Review","status":"SATISFIED","is_legacy":true,"submittability_expression_result":{"expression":"label:Code-Review\u003dMAX -label:Code-Review\u003dMIN","fulfilled":true,"status":"PASS","passing_atoms":["label:Code-Review\u003dMAX","-label:Code-Review\u003dMIN"],"failing_atoms":[]}}]}
