CMDLINE handling: do not use 'local' outside a function