In bash: I input the command:
getopt -l name,data -- --namd
and the output is
-- name,pp -- --namd
input :
getopt -l name,data -- --name
the output alse
-- name,pp -- --name
why it dosen't tell me the err when i input getopt -l name,data -- --namd
?
getopts
builtin command, which is generally easier to work with. At least, I think so.