1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-07-25 01:41:12 +02:00

Added usage messages to all the scripts and documented multiple configuration

projects.
This commit is contained in:
Chris Palmer
2020-03-11 23:09:03 +00:00
parent a8422a6aa6
commit 23a64f238d
14 changed files with 124 additions and 23 deletions

View File

@@ -27,9 +27,17 @@ from bom import boms
from render import render
from views import views
from plateup import plateup
from set_config import set_config
def usage():
print("\nusage:\n\tmake_all [target_config] - Make all the manufacturing files and readme for a project.")
sys.exit(1)
if __name__ == '__main__':
if len(sys.argv) > 2: usage()
target = None if len(sys.argv) == 1 else sys.argv[1]
set_config(target, usage)
boms(target)
for part in ['stl', 'dxf']:
make_parts(target, part)