We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa462ec commit 340dd18Copy full SHA for 340dd18
lib/bashly/script/command.rb
@@ -87,8 +87,8 @@ def group_string
87
# flag with arg that is defined as unique
88
def has_unique_args_or_flags?
89
deep_commands(include_self: true).each do |command|
90
- return true if command.args.count(&:unique).positive? ||
91
- command.flags.count(&:unique).positive?
+ return true if command.args.any?(&:unique) ||
+ command.flags.any?(&:unique)
92
end
93
false
94
0 commit comments