Skip to content

Commit

Permalink
hwbridge: fix syntax error introduced in aeed81d
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoles committed Jul 22, 2020
1 parent 73bd6c4 commit 2f7cce9
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 2f7cce9

Please sign in to comment.