move usage function

This commit is contained in:
ktyl 2023-03-13 21:00:43 +00:00
parent 45fc27f1a8
commit 2253d24ad2
1 changed files with 3 additions and 3 deletions

6
ppp.py
View File

@ -5,6 +5,9 @@ import re
err = False err = False
paths = [] paths = []
def print_usage():
print("\nusage: python ppp.py ROOT TEMPLATES [...]")
# check arguments # check arguments
argc = len(sys.argv) argc = len(sys.argv)
if argc < 3: if argc < 3:
@ -20,9 +23,6 @@ src_dir = sep.join(sys.argv[2].split(sep)[:-1])
# regex patterns # regex patterns
p_var = re.compile(r'(#.+?\.css)') p_var = re.compile(r'(#.+?\.css)')
def print_usage():
print("\nusage: python ppp.py ROOT TEMPLATES [...]")
def preprocess_file(path): def preprocess_file(path):
lines=0 lines=0