4 ms·
Input parameter with - - is not really intuitive. It works, but the just way to handle input parameters is way more easier to remember
by lormayna 2y ago
Input parameter with - - is not really intuitive. It works, but the just way to handle input parameters is way more easier to remember
- DrRobinson 2y agoPersonally I disagree, I think `--` is very intuitive. Maybe it isn't super common knowledge, but `--` is in line with the POSIX argument parsing convention[0] and is used by many (most?) GNU/BSD tools and many other tools such as `kubectl`. This StackOverflow thread[1] also has some information about it. [0] https://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html#:~:text=The%20argument%20%2D%2D%20terminates%20all%20options https://www.gnu.org/software/libc/manual/html_node/Argument-... [1] https://unix.stackexchange.com/questions/11376/what-does-double-dash-double-hyphen-mean https://unix.stackexchange.com/questions/11376/what-does-dou...