I am very curious about why some parameters on the command line are preceded by a "-", some parameters have two "-", and some do not. I want to know what this means? Is it an established norm?
for example
git init
git-- version
ls-a
wait.
I am very curious about why some parameters on the command line are preceded by a "-", some parameters have two "-", and some do not. I want to know what this means? Is it an established norm?
for example
git init
git-- version
ls-a
wait.
git uses the posix parameter style syntax.
of course, parameter style is not only posix, but also java style (regardless of short and long parameters, a single -
represents option, such as java-jar
, java-cd
, java-D
, etc.), and bsd style (do not use -
to guide option, to use one letter to represent option, and can be written in conjunction, such as ps aux
, tar xvf file.tar
, < It is a typical BSD style) and so on
General convention. A -
stands for shorthand. Both indicate full write, or the command contains -
is theoretically a string, that is, the use of a string, with or without-- can
but most of them will bring-- this should be regarded as a convention
agrees with @ Feng_Yu , but there is another way to write it that is neither easy to remember nor good-looking. For example, see the explanation of gcc's command line argument-Wall:
https://gcc.gnu.org/onlinedoc.
The-Wall parameter contains the following parameters by default:
-Waddress
-Warray-bounds=1 (only with-O2)
-Wbool-compare
-Wbool-operation
-WcPP11-compat-WcPP14-compat
-Wcatch-value (CPP and Objective-CPP only)
.
the project needs to add a hyperlink or click event on the tree node text to achieve the page jump effect. I looked at the official document and only found the node click event. The jump is realized through the node click event. The implementation code ...
Why is typesetting always messy when using SQLserver s sqlcmd to execute select on ubuntu? the following figure shows the effect after sp_help student has been executed. select * from sys.tables is the same ...
an error occurred when I used the command line ionic start mm to create a project named mm, and the project could not be created. error message is I would like to ask you, how should this error be solved? Thank you ~ ...
Click on the parent node to get the id, of the node and render it into a child node. now that the id has been obtained and the data of the child node has been requested, I don t know how to render it under this node. look at the official introduction...
MacBook Pro, will report an error permission denied every time I use the command line operation file, and then I can only sudo-s every time. I ask for a password every time I edit the file pulled down by the scaffolding and ask for a solution urgentl...
element tree monitors the value of the current node through the check-change method, whether it is selected, whether the child element is selected, requirement: turn the current node into a disabled state [disabled] when the current node is selected ...
my project will use webp image format, because I am a novice, so I can not find on the Internet can directly use the java library to convert picture format bit webp, but google provides a conversion tool that can be run under linux, so I intend to use t...
for example, the file structure is as follows: file1 file2 directory file3 directory file4 now move all the above files and folders to a new folder newDirectory . How does the command line implement? filenames may be irregular filenames, and there m...
problem description I want to compile and install vcpkg, when entering commands headed by vcpkg, they all report an error: .vcpkg is not an internal or external command, nor is it a runnable program. I am not familiar with the use of orders. I hop...
I know that using python xxxx.py > 1.log on the command line can output the results of the program to 1.log. But if you run it like this on the command line, you won t see the real-time print results, so you can only wait for the program to settle and t...
level: level sort: current level location excuse me: add a parent node according to the currently selected node, become the added parent node at the current node location, and the current node becomes the child of the parent node? ...
as shown in the picture: keep it. is normal before php-v is executed, and there is a flash in the interface after execution, and then this happens. Why is this happening? how to solve this problem? ...
as shown in figure I want to move all .mkv files in the current folder and all subfolders to the subfolder. new of the current folder. I know that the copy command can be cp-r. *. Mkv. new The question is, how do you do the mv command? solve. ...
< H1 > explanation: < H1 > linux command line input has a lot of shortcut, which is very convenient; for example: ctrl+a jumps to the beginning of the input line; ctrl+e cursor moves to the end of the line; but has not been able to find the middle o...
goal: achieve the timeline of the process platform through php for example, a process platform needs to be designed, and the complete process needs to be realized through steps such as A-> B-> C-> D-> E, and there are multiple job in the whole process...
when using Tensorflow for multiple linear regression, we encounter the problem of parameter non-convergence. The problem lies in the choice of optimization methods: if you use tf.train.AdamOptimizer , the parameters will converge and the loss function ...
first of all, I found a lot of database design on Baidu, it can be said that there are different opinions! I see an intermediate table is designed like this, commodity ID sku attributes, unit price inventory, see that the intermediate attributes store js...
use spark mllib linear regression to do traffic forecast printing training, weight and other coefficients are all NaN data format: 520221 | 0009 | 0009 | 292 | 000541875150 | 2018 | 04 | 18 | 11 | 3 | 137 520626 | 0038 | 0038 | 520626 | 2030300010...