Converted from arg_parse to optsparse in dependoplot