Re:Git In Two Minutes (updated after 8 years)
by tremon on Saturday August 06, 2022 @05:06PM
(#32371593)
And then we have startx, which starts both an X server and the X client specified:
startx /path/to/client --with --client-options and arguments -- --server-options -go --here
Here, the double dash is used to separate the client options from the server options (the path to the server binary is compiled-in, IIRC).
Re:Git In Two Minutes (updated after 8 years)
by pojzon on Saturday August 06, 2022 @04:59PM
(#32371541)
Not only a filepath, this means pass anything past “—-“ ‘as is’ as an input and not an option flag.
docker run -it nginx —- ls la
Re:Git In Two Minutes (updated after 8 years)
by soupshield on Saturday August 06, 2022 @05:00PM
(#32371551)
Ah yes I've seen it in those kind of contexts too. Thanks everyone this has really clicked in to place for me :)
Re:Git In Two Minutes (updated after 8 years)
by CRConrad on Thursday August 11, 2022 @02:47AM
(#32422335)
ObAgainstTheGuidelines: Me too.
Re:Git In Two Minutes (updated after 8 years)
by drdec on Saturday August 06, 2022 @06:19PM
(#32372106)
Not a file path specifically and not an input exactly but I think the proper word would be an argument.
Re:Git In Two Minutes (updated after 8 years)
by soupshield on Saturday August 06, 2022 @04:57PM
(#32371530)
Thank you for this brilliant explanation (complete with interactive example :) I completely get it now.
This is not git specific, but a common convention for CLI tools. Try running:
And compare what happens without the "--".