Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想像这样调用我的 bash shell 脚本:
./myscript --dbName mydb --dbUser root --dbPass rootpass
我怎样才能轻松地在脚本中检索这些?
getopt 看起来它只适用于单个字符选项