p8952 / bocker

Docker implemented in around 100 lines of bash
https://www.p8952.info/
GNU General Public License v3.0
11.26k stars 715 forks source link

Renamed cmdline args to BOCKER_ prefix #21

Closed Fusion closed 9 years ago

Fusion commented 9 years ago

I noticed your sadness regarding the lack of command line arguments handling so here is a one liner suggestion :)

Long form only, supports '--a=b' as well as '--a'

Note that 'a' ends up being 'BOCKER_a' to keep in line with your newly added environment variables support so you could type

bocker --CPU_SHARE=512 --MEM_LIMIT=512
Fusion commented 9 years ago

...additionally, this does not disrupt the rest of the command line and the arguments are still received with the same index number.