Ravi Sir's Cards › AWS (मराठी)
getopts vs while/case
या comparison card मध्ये getopts आणि while/case यांची तुलना केली आहे. getopts: Built in, short flags. while/case: हाताने लिहिलेला loop. getopts कधी वापरावं: लहान tools. while/case कधी वापरावं: मोठे CLIs.
कार्ड मजकूर वाचा
या कार्डवर काय आहे
Parse
getopts
Built in, short flags.
while/case
हाताने लिहिलेला loop.
मुख्य मुद्दे
-v -f file, -vf.
Long --flags पण.
उदाहरण
case $1 in --help)
कधी वापरावं
लहान tools.
मोठे CLIs.