--

範例 001

執行

$ ls

會顯示一個列表

範例 002

執行

$ ls -l

會顯示一個列表

範例 003

執行

$ ls -- -l

顯示

ls: cannot access -l: No such file or directory

文件說明

執行

$ man bash

可以看到下面一段說明

OPTIONS
       All of the  single-character shell options documented in the description of the set builtin command can be used
       as options when the shell is invoked.  In addition, bash interprets the following options when it is invoked:

...略...

       --        A -- signals the end of options and disables further option processing.  Any arguments after  the  --
                 are treated as filenames and arguments.  An argument of - is equivalent to --.