On Fri, Aug 11, 2017 at 4:46 AM, Thorsten Kampe <thors...@thorstenkampe.de>
wrote:
>
> - does Fish have an equivalent for getopts? What's the
> recommended solution for parsing command options?
>

Fish 2.7.0, due to be released in a few weeks, as an "argparse" command
that is much easier to use than "getopts".


> - does Fish have an equivalent to the errexit option
> (stop execution on error)?
>

No. See https://github.com/fish-shell/fish-shell/issues/510


> - does Fish have an equivalent to the nounset option
> (treat unset variables as error)?
>

No. See https://github.com/fish-shell/fish-shell/issues/4163


> - does Fish have an equivalent to the xtrace option
> (verbose script execution without full debugging)?
>

Not yet. It's very high on my wishlist but I want to be able to implement
it using fish script. And to do that the "status" command needs some
enhancements. Until then it is sometimes useful to run the script with
`-d3` to better understand the sequence of commands run.

-- 
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to