mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-03 20:11:15 -03:00
builtin break/continue: support -h/--help argument
These are not generic builtins because we check whether they're inside a loop. There's no reason to not support "break -h" when we support "if -h" etc.; do that.
This commit is contained in:
@@ -442,6 +442,15 @@ eval continue
|
||||
#CHECKERR: Error-message: continue: Not inside of loop
|
||||
#CHECKERR: Documentation for continue
|
||||
|
||||
break -h
|
||||
#CHECKERR: Documentation for break
|
||||
break --help
|
||||
#CHECKERR: Documentation for break
|
||||
$dyn_break -h
|
||||
#CHECKERR: Documentation for break
|
||||
continue -h
|
||||
#CHECKERR: Documentation for continue
|
||||
|
||||
# Test implicit cd. This should do nothing.
|
||||
./
|
||||
|
||||
|
||||
Reference in New Issue
Block a user