Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • C climix
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 48
    • Issues 48
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 5
    • Merge requests 5
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • climix
  • climix
  • Merge requests
  • !191

Added command line argument -f to specify an external metadata file (fixes #228)

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Carolina Nilsson requested to merge a002527/climix:feature_command_line_argument_f into main Nov 24, 2022
  • Overview 6
  • Commits 6
  • Pipelines 0
  • Changes 2

A command line argument -f has been added such that external metadata files can be added from the command line, e.g, climix -f ./path/to/my_project_index_definition.yaml or climix -f ./path/to/my_project_index_definition.yaml -f ./path/to/another_project_index_definition.yaml or climix -f "./path/to/my project index definition.yaml"

  • The last specified external file will be used as the definition if there are multiple definitions.

  • The names for the indices and variables are checked for multiple occurrences and information messages are printed specifying which indices/variables that have been replaced giving the path to the current definition.

  • The command line -f is optional, such that if it is not used no external file will be added. It will still check and inform for multiple occurrences of indices/variables in the other files.

This fixes the main functionality discussed in issue #228 (closed). There is also a suggestion about a mechanism to overwrite individual parameters, like period, from the command line. This should probably be discussed in issue #229 (closed) since more details are needed.

Edited Nov 30, 2022 by Carolina Nilsson
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feature_command_line_argument_f