mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-24 05:41:14 -03:00
Allow setting feature flags on the command line
This introduces a new command line option --features which can be used for enabling or disabling features for a particular fish session. Examples: fish --features stderr-nocaret fish --features 3.0,no-stderr-nocaret fish --features all Note that the feature set cannot be changed in an existing session.
This commit is contained in:
1
tests/invocation/features-nocaret1.invoke
Normal file
1
tests/invocation/features-nocaret1.invoke
Normal file
@@ -0,0 +1 @@
|
||||
--features 'no-stderr-nocaret' -c 'status test-feature stderr-nocaret; echo nocaret: $status'
|
||||
1
tests/invocation/features-nocaret1.out
Normal file
1
tests/invocation/features-nocaret1.out
Normal file
@@ -0,0 +1 @@
|
||||
nocaret: 1
|
||||
1
tests/invocation/features-nocaret2.invoke
Normal file
1
tests/invocation/features-nocaret2.invoke
Normal file
@@ -0,0 +1 @@
|
||||
--features 'stderr-nocaret' -c 'status test-feature stderr-nocaret; echo nocaret: $status'
|
||||
1
tests/invocation/features-nocaret2.out
Normal file
1
tests/invocation/features-nocaret2.out
Normal file
@@ -0,0 +1 @@
|
||||
nocaret: 0
|
||||
Reference in New Issue
Block a user