handle -lgno options properly