Browse Source

Add arg to parse for static url

prieto 8 years ago
parent
commit
7047a70ac9
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      progs/slim/slim.py

+ 3
- 0
progs/slim/slim.py View File

@@ -455,6 +455,9 @@ def get_parser():
455 455
     actions.add_argument('-m', '--make', metavar='TARGET', type=str,
456 456
         nargs="?", default='not',
457 457
         help='Run make for selected instances')
458
+    actions.add_arguments('-s', '--static_url', type=str, nargs="?", 
459
+	default='http://127.0.0.1/static/', metavar='static_url',
460
+	help='Set an url for static documents')
458 461
     actions.add_argument('--nginx-conf', action='store_const',
459 462
         default = False, const=True,
460 463
         help="Output a conf for nginx given selected instances")

Loading…
Cancel
Save