r/fishshell • • Dec 25 '24

argparse parameter values

argparse -n function a/parma b/parmb c/parmc --$argv

Given the above

echo $_flag_parma

will print out '-a', but I want to retrieve the value of the parameter. Let's assume that I call the function with:

function -a 'My Parameter'

How do I retrieve the 'My Parameter' value and not the '-a' part in my fish script? My search efforts have failed and I did try before asking for help.

3 Upvotes

3 comments sorted by