Browse Source

Adding two basic arguments

indexfile: the location of the index file to use/build
gireposdir: the location of the gitrepos.d directory
Lertsenem 5 years ago
parent
commit
56ba4c2578
1 changed files with 13 additions and 0 deletions
  1. 13 0
      gitlist/__init__.py

+ 13 - 0
gitlist/__init__.py

@@ -12,6 +12,19 @@ if __name__ == '__main__':
12 12
     # --------------------------------------
13 13
     parser = argparse.ArgumentParser()
14 14
 
15
+
16
+    parser.add_argument( "--indexfile",
17
+                         type    = str,
18
+                         default = "/var/cache/gitlist/index",
19
+                         help    = "The name of the index to create" )
20
+
21
+    parser.add_argument( "--gitreposdir",
22
+                         type    = str,
23
+                         default = "/etc/gitlist/gitrepos.d"
24
+                         help    = "The name of the directory where the " \
25
+                                   "gitrepos files are" )
26
+
27
+    # --------------------------------------
15 28
     subparsers = parser.add_subparsers( dest  = "command",
16 29
                                         title = "commands" )
17 30