From 6344f6eb733917fab144aa21e348a4af95396ced Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 14 Apr 2025 10:45:56 -0400 Subject: [PATCH] Make filter help text more accurate --- SabreTools.Core/README.1ST | 36 +++++++++++++++--------------- SabreTools/Features/BaseFeature.cs | 2 +- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/SabreTools.Core/README.1ST b/SabreTools.Core/README.1ST index f74e9c5b..7f45f80c 100644 --- a/SabreTools.Core/README.1ST +++ b/SabreTools.Core/README.1ST @@ -400,12 +400,12 @@ Features and Options: -fi=, --filter= Filter a game/rom field with the given value(s) Filter any valid item or machine field from inputs. Filters are input - in the form 'key=value' or 'key!=value', where the '!' signifies 'not - matching'. Numeric values may also prefix the 'value' with '>', '<', - or '=' accordingly. Key examples include: romof, category, and game. - Additionally, the user can specify an exact match or full C#-style - regex for pattern matching. Multiple instances of this flag are - allowed. + in the form 'type.key=value' or 'type.key!=value', where the '!' + signifies 'not matching'. Numeric values may also use extra + operations, namely '>', '>=', '<', and '<='. Key examples include: + item.romof, machine.category, and game.name. Additionally, the user + can specify an exact match or full C#-style regex for pattern + matching. Multiple instances of this flag are allowed. -ofg, --match-of-tags Allow cloneof and romof tags to match game name filters If filter or exclude by game name is used, this flag will allow those @@ -1130,12 +1130,12 @@ Features and Options: -fi=, --filter= Filter a game/rom field with the given value(s) Filter any valid item or machine field from inputs. Filters are input - in the form 'key=value' or 'key!=value', where the '!' signifies 'not - matching'. Numeric values may also prefix the 'value' with '>', '<', - or '=' accordingly. Key examples include: romof, category, and game. - Additionally, the user can specify an exact match or full C#-style - regex for pattern matching. Multiple instances of this flag are - allowed. + in the form 'type.key=value' or 'type.key!=value', where the '!' + signifies 'not matching'. Numeric values may also use extra + operations, namely '>', '>=', '<', and '<='. Key examples include: + item.romof, machine.category, and game.name. Additionally, the user + can specify an exact match or full C#-style regex for pattern + matching. Multiple instances of this flag are allowed. -ofg, --match-of-tags Allow cloneof and romof tags to match game name filters If filter or exclude by game name is used, this flag will allow those @@ -1245,12 +1245,12 @@ Features and Options: -fi=, --filter= Filter a game/rom field with the given value(s) Filter any valid item or machine field from inputs. Filters are input - in the form 'key=value' or 'key!=value', where the '!' signifies 'not - matching'. Numeric values may also prefix the 'value' with '>', '<', - or '=' accordingly. Key examples include: romof, category, and game. - Additionally, the user can specify an exact match or full C#-style - regex for pattern matching. Multiple instances of this flag are - allowed. + in the form 'type.key=value' or 'type.key!=value', where the '!' + signifies 'not matching'. Numeric values may also use extra + operations, namely '>', '>=', '<', and '<='. Key examples include: + item.romof, machine.category, and game.name. Additionally, the user + can specify an exact match or full C#-style regex for pattern + matching. Multiple instances of this flag are allowed. -ofg, --match-of-tags Allow cloneof and romof tags to match game name filters If filter or exclude by game name is used, this flag will allow those diff --git a/SabreTools/Features/BaseFeature.cs b/SabreTools/Features/BaseFeature.cs index 233c6f50..bb268840 100644 --- a/SabreTools/Features/BaseFeature.cs +++ b/SabreTools/Features/BaseFeature.cs @@ -1313,7 +1313,7 @@ namespace SabreTools.Features new List() { "-fi", "--filter" }, "Filter a game/rom field with the given value(s)", ParameterType.List, - longDescription: "Filter any valid item or machine field from inputs. Filters are input in the form 'key=value' or 'key!=value', where the '!' signifies 'not matching'. Numeric values may also prefix the 'value' with '>', '<', or '=' accordingly. Key examples include: romof, category, and game. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed."); + longDescription: "Filter any valid item or machine field from inputs. Filters are input in the form 'type.key=value' or 'type.key!=value', where the '!' signifies 'not matching'. Numeric values may also use extra operations, namely '>', '>=', '<', and '<='. Key examples include: item.romof, machine.category, and game.name. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed."); } }