Guest User

Untitled

a guest
May 26th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. def run(cmdline=ARGV)
  2. name, *args = cmdline
  3. name &&= name.to_sym
  4.  
  5. name, *args = :main, name, *args unless COMMANDS[name]
  6. Commandant.call name.to_sym, args.compact
  7. end
  8. module_function :run
Add Comment
Please, Sign In to add comment