1
How call the script (python)
[deleted]

Tell me, please, how to call a script with arguments in python in the console.
I get an error when calling a script:
Python 3.6.1 (default, Dec 2015, 13:05:11)
[GCC 4.8.2] on linux
usage: main.py [-h] {create_db,add,get} ...
main.py -h
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'main' is not defined

You are viewing a single comment. View All
Answered by TheDrone7 (519) [earned 5 cycles]
View Answer
1
[deleted]

@TheDrone7
I did not want to spam, I thought that the first post was not created. Thanks for the answer.