From 2a3efd8f59d9d2ccb8b9a0d5728ed1844dd5913d Mon Sep 17 00:00:00 2001 From: Khairul Azhar Kasmiran Date: Wed, 25 Dec 2024 14:32:55 +0800 Subject: [PATCH 1/2] Fix `:?` --- librz/core/cmd_descs/cmd_descs.c | 4 ++-- librz/core/cmd_descs/cmd_descs.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/librz/core/cmd_descs/cmd_descs.c b/librz/core/cmd_descs/cmd_descs.c index 744bd5f4570..b6e3409b991 100644 --- a/librz/core/cmd_descs/cmd_descs.c +++ b/librz/core/cmd_descs/cmd_descs.c @@ -19195,7 +19195,7 @@ static const RzCmdDescHelp grep_help = { static const RzCmdDescDetailEntry specifiers_Table_space_format_space_specifiers_space__oparen__minor_table_spec_greater__cparen__detail_entries[] = { { .text = "/sort/", .arg_str = NULL, .comment = "Sort table by column in increasing or decreasing order." }, { .text = "/sortlen/", .arg_str = NULL, .comment = "Sort table length of column in increasing or decreasing order." }, - { .text = "/cols[/[/...]", .arg_str = NULL, .comment = "Show only specified columns in the table." }, + { .text = "/cols[//...]", .arg_str = NULL, .comment = "Show only specified columns in the table." }, { .text = "", .arg_str = NULL, .comment = "Show only column (it must not have the same name as an output format specifier)." }, { .text = "/gt/", .arg_str = NULL, .comment = "Grep rows where column is greater than ." }, { .text = "/ge/", .arg_str = NULL, .comment = "Grep rows where column is greater than or equal to ." }, @@ -19236,7 +19236,7 @@ static const RzCmdDescDetail specifiers_details[] = { }; static const RzCmdDescHelp specifiers_help = { .summary = "Command specifiers (table-output only for now)", - .usage = "[:[::...]:]", + .usage = "[::...][:]", .options = "[?]", .details = specifiers_details, }; diff --git a/librz/core/cmd_descs/cmd_descs.yaml b/librz/core/cmd_descs/cmd_descs.yaml index 5a0c71bc2d2..6aa539cc25a 100644 --- a/librz/core/cmd_descs/cmd_descs.yaml +++ b/librz/core/cmd_descs/cmd_descs.yaml @@ -564,7 +564,7 @@ commands: options: "[?]" summary: Command specifiers (table-output only for now) type: RZ_CMD_DESC_TYPE_FAKE - usage: "[:[::...]:]" + usage: "[::...][:]" details: - name: Table format specifiers () entries: @@ -572,7 +572,7 @@ commands: comment: Sort table by column in increasing or decreasing order. - text: "/sortlen/" comment: Sort table length of column in increasing or decreasing order. - - text: "/cols[/[/...]" + - text: "/cols[//...]" comment: Show only specified columns in the table. - text: "" comment: Show only column (it must not have the same name as an output format specifier). From 3922da1882e8078579d44e854564c533dfdc9502 Mon Sep 17 00:00:00 2001 From: Khairul Azhar Kasmiran Date: Wed, 25 Dec 2024 18:23:11 +0800 Subject: [PATCH 2/2] Be more precise with list notation --- librz/core/cmd_descs/cmd_descs.c | 4 ++-- librz/core/cmd_descs/cmd_descs.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/librz/core/cmd_descs/cmd_descs.c b/librz/core/cmd_descs/cmd_descs.c index b6e3409b991..a235723ce46 100644 --- a/librz/core/cmd_descs/cmd_descs.c +++ b/librz/core/cmd_descs/cmd_descs.c @@ -19195,7 +19195,7 @@ static const RzCmdDescHelp grep_help = { static const RzCmdDescDetailEntry specifiers_Table_space_format_space_specifiers_space__oparen__minor_table_spec_greater__cparen__detail_entries[] = { { .text = "/sort/", .arg_str = NULL, .comment = "Sort table by column in increasing or decreasing order." }, { .text = "/sortlen/", .arg_str = NULL, .comment = "Sort table length of column in increasing or decreasing order." }, - { .text = "/cols[//...]", .arg_str = NULL, .comment = "Show only specified columns in the table." }, + { .text = "/cols[/[/...]]", .arg_str = NULL, .comment = "Show only specified columns in the table." }, { .text = "", .arg_str = NULL, .comment = "Show only column (it must not have the same name as an output format specifier)." }, { .text = "/gt/", .arg_str = NULL, .comment = "Grep rows where column is greater than ." }, { .text = "/ge/", .arg_str = NULL, .comment = "Grep rows where column is greater than or equal to ." }, @@ -19236,7 +19236,7 @@ static const RzCmdDescDetail specifiers_details[] = { }; static const RzCmdDescHelp specifiers_help = { .summary = "Command specifiers (table-output only for now)", - .usage = "[::...][:]", + .usage = "[:[:...]][:]", .options = "[?]", .details = specifiers_details, }; diff --git a/librz/core/cmd_descs/cmd_descs.yaml b/librz/core/cmd_descs/cmd_descs.yaml index 6aa539cc25a..33ff3cfb56d 100644 --- a/librz/core/cmd_descs/cmd_descs.yaml +++ b/librz/core/cmd_descs/cmd_descs.yaml @@ -564,7 +564,7 @@ commands: options: "[?]" summary: Command specifiers (table-output only for now) type: RZ_CMD_DESC_TYPE_FAKE - usage: "[::...][:]" + usage: "[:[:...]][:]" details: - name: Table format specifiers () entries: @@ -572,7 +572,7 @@ commands: comment: Sort table by column in increasing or decreasing order. - text: "/sortlen/" comment: Sort table length of column in increasing or decreasing order. - - text: "/cols[//...]" + - text: "/cols[/[/...]]" comment: Show only specified columns in the table. - text: "" comment: Show only column (it must not have the same name as an output format specifier).