In the morning when looking at the source project Webbench, just at the beginning was a seemingly strange function getopt_long () to get stuck, to tell the truth this function has not seen, naturally do not know what this buddy is doing. So Baidu,
Original article link
In 1990s, UNIX applications began to support long options, that is, a pair of short dashes, a descriptive option name, and a parameter that uses equal signs to connect to options.GNU provides the getopt-long () and
Getopt/getopts: command line option/parameter processing in Bash 0. When writing a program, you must always process command line parameters. This article describes the command line Processing Method in Bash. Options and parameters: for example, the
The getopt_long command line option for linux Parsing is required in the program. You can select the option for parsing the command line by yourself, but there is a ready-made option. Why bother re-engineering the wheel.The following describes how
This article was reproduced from: Http://yejinxin.github.io/parse-shell-options-with-getopt-commandIn a previous article, we described how to use the shell's built-in getopts command to help us with Shell scripting options and parameters, with the
The Bash shell provides a number of different ways to get data from users, including the following 3 methods:
Command line arguments (data added in the back of fame)
command-line Options (single letter with modifiable command behavior)
Problem:when the program is installing the MS Data Access component, the error prompt appears: command line option syntax Error,type command/? , click OK to continue; When the program is installing HTML Help, the pop-up header is the HTML helper 1.32
How to analyze the command line parameters sun,-marchday
There are two types of command line options in GNU/Linux: short option and long option. The former uses '-' as the leading character, and the latter uses '--' as the leading character.. For
OverviewIn Python's project development process, we sometimes need to provide the program with some interfaces that can be called through the command line. Just, not directly using Command + The current file is OK, we need to set an optional variety
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.