Skip to content

Commit

Permalink
Registering commands instead of using a giant case statement
Browse files Browse the repository at this point in the history
  • Loading branch information
st0012 committed Jul 19, 2022
1 parent 4b50fc6 commit 5f5bbdc
Show file tree
Hide file tree
Showing 2 changed files with 626 additions and 559 deletions.
2 changes: 1 addition & 1 deletion lib/debug/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ def self.parse_help
when /\A\s*### (.+)/
cat = $1
break if $1 == 'END'
when /\A when (.+)/
when /\A\s*register_command (.+)/
next unless cat
next unless desc
ws = $1.split(/,\s*/).map{|e| e.gsub('\'', '')}
Expand Down
Loading

0 comments on commit 5f5bbdc

Please sign in to comment.