summaryrefslogtreecommitdiff
path: root/src/options.py
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2021-11-08 21:33:28 +0000
committerdavidovski <david@davidovski.xyz>2021-11-08 21:33:28 +0000
commita46c1d6cc58b847b9b140de2c59e1c7a8ba06655 (patch)
tree5a92f74188b250f38c6e2fbbd06281fdda3cc227 /src/options.py
parent1a5101a5c4beeda67a665964d171396eca6f9a5b (diff)
added config parsing
Diffstat (limited to 'src/options.py')
-rw-r--r--src/options.py8
1 files changed, 7 insertions, 1 deletions
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"
}
}