Add syntax for setting an OptArg option to the default value. #1124

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
Member

23Skidoo commented Nov 18, 2012

Makes it possible to write 'jobs: $DEFAULT' in the config file, which is equivalent to running cabal install -j from the command line (the number of working threads is set to the number of processors).

Fixes #1053.

Member

dcoutts commented Nov 22, 2012

Hmm. Is this needed? You can get the default by not specifying anything, ie leaving it commented out.

Member

23Skidoo commented Nov 22, 2012

Hmm. Is this needed? You can get the default by not specifying anything, ie leaving it commented out.

I'll give an example. Not specifying jobs is like not specifying -j on the command line (don't build in parallel). Setting jobs: 4 is like specifying -j4 on the command line (use 4 jobs). Setting jobs: $DEFAULT is like specifying -j on the command line (build in parallel, use the default number of jobs - that is, $numcores).

Add syntax for setting an OptArg option to the default value.
Makes it possible to write 'jobs: $DEFAULT' in the config file, which is
equivalent to running 'cabal install -j' from the command line (the number of
working threads is set to the number of processors).

@23Skidoo 23Skidoo referenced this pull request Dec 11, 2012

Closed

Add a --parallel flag #1142

Member

23Skidoo commented Dec 13, 2012

Closing, since #1053 (the main reason we wanted this) is now fixed.

@23Skidoo 23Skidoo closed this Dec 13, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment