Commits

Anonymous committed 4695b25

Completed usage function (displayed when arguments are wrong)

Comments (0)

Files changed (1)

src/modelViewer/modelViewer.py

         self.dot.write("\n".join(options))
 
 def usage():
-    print('Usage')
+    print('Usage of ./modelViewer :')
+    print('./modelViewer Scanner [path [path ..]]')
+    print('Scanner could be importScan or inheritanceScan.')
 
 
 def main():
         usage()
     else:
         v = modelViewer(['*.py'], 'output.dot', __import__(sys.argv[1]).getScan())
-        if len(sys.argv) == 3:
+        if len(sys.argv) >= 3:
             for x in sys.argv[2::]:
                 v(x)
         else: