Method: Fast::Cli#replace_args_with_shortcut
- Defined in:
- lib/fast/cli.rb
#replace_args_with_shortcut(args) ⇒ Object
168 169 170 171 172 173 174 175 176 177 |
# File 'lib/fast/cli.rb', line 168 def replace_args_with_shortcut(args) shortcut = find_shortcut args.first[1..] if shortcut.single_run_with_block? shortcut.run exit else args.one? ? shortcut.args : shortcut.merge_args(args[1..]) end end |