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:
ridiculousfish
2018-04-24 14:32:06 -07:00
parent 782cae2d21
commit 8a96f283ba
8 changed files with 63 additions and 1 deletions

View File

@@ -0,0 +1 @@
--features 'no-stderr-nocaret' -c 'status test-feature stderr-nocaret; echo nocaret: $status'

View File

@@ -0,0 +1 @@
nocaret: 1

View File

@@ -0,0 +1 @@
--features 'stderr-nocaret' -c 'status test-feature stderr-nocaret; echo nocaret: $status'

View File

@@ -0,0 +1 @@
nocaret: 0