{"thread":{"id":"50464","subject":"[PATCH] prune-packed: check for too many arguments","startedAt":"2019-02-11T17:23:43Z","lastAt":"2019-02-11T17:23:43Z","messageCount":1,"participants":["Ramsay Jones"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"369019","messageId":"feaa30fe-acc7-9748-eaa9-1afbcf7fa5b2@ramsayjones.plus.com","threadId":"50464","inReplyTo":null,"subject":"[PATCH] prune-packed: check for too many arguments","fromName":"Ramsay Jones","fromEmail":"ramsay@ramsayjones.plus.com","sentAt":"2019-02-11T17:23:40Z","receivedAt":"2019-02-11T17:23:43Z","isPatch":true,"sender":{"key":"ramsay@ramsayjones.plus.com","avatar":"https://avatars.githubusercontent.com/u/33702710?v=4"},"body":"\nSigned-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>\n---\n\nHi Junio,\n\nAnother 'old find' (from feb 2017), but this time I don't seem to have\nsent this one to the list before. It is possible that I didn't think\nit was up to scratch ... dunno. ;-)\n\nATB,\nRamsay Jones\n\n builtin/prune-packed.c | 5 +++++\n 1 file changed, 5 insertions(+)\n\ndiff --git a/builtin/prune-packed.c b/builtin/prune-packed.c\nindex a9e7b552b9..48c5e78e33 100644\n--- a/builtin/prune-packed.c\n+++ b/builtin/prune-packed.c\n@@ -63,6 +63,11 @@ int cmd_prune_packed(int argc, const char **argv, const char *prefix)\n \targc = parse_options(argc, argv, prefix, prune_packed_options,\n \t\t\t     prune_packed_usage, 0);\n \n+\tif (argc > 0)\n+\t\tusage_msg_opt(_(\"too many arguments\"),\n+\t\t\t      prune_packed_usage,\n+\t\t\t      prune_packed_options);\n+\n \tprune_packed_objects(opts);\n \treturn 0;\n }\n-- \n2.20.0\n"}]}