# RUN: %fish %s # # These lines left around because we need the line numbers. # This file in general requires careful editing in the middle, I recommend appending. function t --on-event linenumber status line-number status line-number status line-number end emit linenumber # CHECK: 6 # CHECK: 7 # CHECK: 8 type --nonexistent-option-so-we-get-a-backtrace # CHECKERR: type: Unknown option '--nonexistent-option-so-we-get-a-backtrace' # CHECKERR: {{.*/type.fish}} (line 7): # CHECKERR: argparse -n type -x t,p,P $options -- $argv # CHECKERR: ^ # CHECKERR: in function 'type' with arguments '--nonexistent-option-so-we-get-a-backtrace' # CHECKERR: called on line 16 of file {{.*}}line-number.fish function line-number status line-number end line-number # CHECK: 25