Skip to content

Commit

Permalink
Land #13883, syntax error fix in Hardware Bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
wvu committed Jul 23, 2020
2 parents 93df021 + 2f7cce9 commit e06511c
Showing 1 changed file with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,14 @@ def load_methods(m)
def cmd_generic_handler_help(cmd)
@custom_methods.each do |meth|
next unless meth["method_name"] =~ /#{cmd}$/
args = ""
args = "<args>" if meth["args"].size > 0
print_line("Usage: #{cmd} #{args}")
print_line
meth["args"].each do |arg|
req = ""
req = " *required*" if arg.key? "required" and arg["required"] == true
print_line(" #{arg["arg_name"]}=<#{arg["arg_type"]}> #{req}")
end
args = ""
args = "<args>" if meth["args"].size > 0
print_line("Usage: #{cmd} #{args}")
print_line
meth["args"].each do |arg|
req = ""
req = " *required*" if arg.key? "required" and arg["required"] == true
print_line(" #{arg["arg_name"]}=<#{arg["arg_type"]}> #{req}")
end
end
end
Expand Down

0 comments on commit e06511c

Please sign in to comment.