Opened 6 months ago

Last modified 7 weeks ago

#28718 new defect

Simplify configuration options

Reported by: juga Owned by:
Priority: Medium Milestone: sbws: unspecified
Component: Core Tor/sbws Version:
Severity: Normal Keywords: tech-debt, refactor, config
Cc: juga, teor Actual Points:
Parent ID: #28684 Points: 1
Reviewer: Sponsor:

Description

Programs should allow in this order: cli options, user configuration files passed by cli, environment variables, system configuration files and program defaults.
There seems there's not a common easy way to achieve this in Python.
sbws accepts cli and user configuration files in a complicated way.
The program defaults are provided as a configuration file which might not be that convenient seems confuses where to find the defaults.
Maybe an external library like https://github.com/bw2/ConfigArgParse (supported in Debian) or some other design can help to simplify this.

Child Tickets

Change History (3)

comment:1 Changed 2 months ago by juga

Keywords: tech-debt refactor added

Add keywords

comment:2 Changed 7 weeks ago by juga

Points: 1

Set points at least to minimum

comment:3 Changed 7 weeks ago by juga

Keywords: config added
Note: See TracTickets for help on using tickets.