Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cards › AWS

AWS Cloud

getopts vs manual parsing?

This interview card answers: getopts vs manual parsing? Getopts — short flags, built in. Manual case loop for long --flags. Shift after getopts.

getopts vs manual parsing? getopts: short flags, built in. Manual case loop for long --flags. Shift after getopts.
getopts vs manual parsing? · Download PNG
Read card text

What this card says

What it is

getopts: short flags, built in.

Why it matters

Manual case loop for long --flags.

How / example

Shift after getopts.

shift $((OPTIND-1))

See all AWS revision cards