Settings¶
Global settings for alice can be configured by defining macros before any alice header is included. The following settings are supported:
-
ALICE_SETTINGS_WITH_DEFAULT_OPTION
¶ Controls whether default store options are supported.
Default store options are useful, when a shell interface contains several stores. If one command uses a store, e.g., to read a file, it can remember the last store, such that a following command does not necessarily need to be provided with a flag to select the store again. For example, if one has a store for strings (accessed via option
--str
) and one for numbers (access via option--int
), then a call toread_text --str file
would set the default option to--str
, such that a immediate call toprint
would not need the--str
option to print the string. The default store option is displayed in the prompt.The default value for this setting is
false
.