Fix addopts (-a / -A ). Fix stack overflow in input parsing