nopt-usage is really sketchy software but i dont want to write my own.