Feature #1666

Allow setting/overwriting values of variables from the commandline

Added by J. Moringen over 10 years ago. Updated almost 10 years ago.

Status:ResolvedStart date:12/03/2013
Priority:NormalDue date:
Assignee:J. Moringen% Done:

100%

Category:User Interface
Target version:0.2

Description

There should be a way to specify values for variables on the commandline such that existing values will be overwritten.

Common examples would be:
  • overwriting the installation prefix of a distribution
  • specifying a SCM URL for one project to analyze a local working copy instead of the upstream repository

As a possible extension, some variables could be marked as needing to be specified in this way. This would be particularly useful for variables for which no good default value exists, e.g. installation prefix when installing locally.

Associated revisions

Revision 23115342
Added by J. Moringen almost 10 years ago

Added "set" commandline option in src/commandline-interface/main.lisp

fixes #1666

  • src/commandline-interface/main.lisp (update-synopsis): added "set"
    commandline option
    (parse-overwrite): new function; helper function for parsing
    variable-value specifications
    (main): collect values of "set" option and modify distribution
    variables accordingly

Revision 434640b6
Added by J. Moringen almost 10 years ago

Added missing function collect-option-values in src/commandline-interface/main.lisp

refs #1666

Should have been part of commit 2311534.

  • src/commandline-interface/main.lisp (collect-option-values): new
    function; collect all values of a commandline option into a list

History

#1 Updated by J. Moringen over 10 years ago

  • Description updated (diff)

#2 Updated by J. Moringen over 10 years ago

  • Target version set to 0.3

#3 Updated by J. Moringen almost 10 years ago

  • Target version changed from 0.3 to 0.2

#4 Updated by J. Moringen almost 10 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

#5 Updated by J. Moringen almost 10 years ago

  • Category set to User Interface

Also available in: Atom PDF