Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • S sbws
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The Tor Project
  • Network Health
  • sbws
  • Issues
  • #27362
Closed
Open
Issue created Aug 28, 2018 by juga@jugaMaintainer

(sub-)packages outside of core (cli) should not need to know about confs and args

That would help to have a more modular design and use other (sub)packages and (sub)modules without the need of creating ConfigParser and ArgumentParser objects. It also would help to simplify tests configurations.

Additionally, a program should take into account in this order:

  • cli arguments
  • environment variables
  • user configuration files
  • system configuration files
  • program defaults

That is currently almost match. but it would be better if they all can be took into account in a simpler way.

This is not for MVP, but creating the ticket cause i'm creating new code taking this into account, and would be nice to change at some point.

Some tickets, as legacy/trac#27358 (moved), happen because of this.

Assignee
Assign to
Time tracking