title: How to pass Vim function argument to a command?
body: <p>I'm using the following function + command to invoke the debugger in Vim:</p>
  <pre><code>function! TermDebugArm(executable)
      packadd termdebug
      let g:termdebugger=&quot;arm-none-eabi-gdb&quot;
      Termdebug a:executable
  endfunction
  
  command! -complete=file -nargs=1 TermDebugArm :call TermDebugArm(&lt;f-args&gt;)
  </code></pre>
  <p>Unfortunately, the <code>Termdebug</code> command gets the literal argument &quot;a:executable&quot; and not the actual value it should represent (i.e. the filename passed to the command that called the function).</p>
  <p>What am I doing wrong?</p>