From a46c1d6cc58b847b9b140de2c59e1c7a8ba06655 Mon Sep 17 00:00:00 2001 From: davidovski Date: Mon, 8 Nov 2021 21:33:28 +0000 Subject: added config parsing --- src/options.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/options.py') diff --git a/src/options.py b/src/options.py index 9064369..c910ef2 100644 --- a/src/options.py +++ b/src/options.py @@ -5,7 +5,7 @@ options = { "name": "help", "flag" : True, "desc" : "prints the command usage and exists the program", - } + }, "y" : { "name" : "no-confirm", "flag" : True, @@ -21,6 +21,12 @@ options = { "name" : "no-sync", "flag" : True, "desc" : "skip syncing with repo sources (not recommended)" + }, + "c": { + "name" : "config", + "flag" : False, + "desc" : "specify the configuration file to use", + "default" : "/etc/xipkg.conf" } } -- cgit v1.2.1