another attempt at fixing preset argument

This commit is contained in:
Connor Olding 2018-06-16 00:37:19 +02:00
parent e3695bfb84
commit 155f868f56
2 changed files with 3 additions and 2 deletions

View file

@ -1,4 +1,5 @@
local preset = rawget(_G, 'preset') or 'ars'
local preset = rawget(_G, 'preset')
preset = preset ~= nil and preset ~= '' and preset or 'ars'
local common_cfg = {
-- read-only modes:

View file

@ -1,4 +1,4 @@
preset = arg -- must be done before requiring strict!
preset = arg or "" -- must be done before requiring strict!
local globalize = require("strict")
-- configuration.