lib/yargs.rb
# Removes the token, and everything after from the remaining argv.
# Everything that followed the token is returned in an array.
Removes the token, and everything after from the remaining argv.
Everything that followed the token is returned in an array.
Removes the token and everything after from the remaining argv . Everything that followed the token is returned in an array .
def everything_after(token)
    post = []
    in_post = false
    index = remaining.index(token)
    return post unless index
    post.unshift remaining.pop until remaining.length == index + 1
    remaining.pop 
    post
  end
def everything_after ( token ) post = [ ] in_post = false index = remaining . index ( token ) return post unless index post . unshift remaining . pop until remaining . length == index + 1 remaining . pop post end
Removes the token, and everything after from the remaining argv.
Removes the token and everything after from the remaining argv .
# remove the token itself
token