Compare commits
2 Commits
897c3943c1
...
c2c06cc9fe
Author | SHA1 | Date |
---|---|---|
waldek | c2c06cc9fe | |
waldek | 6672e8d1d2 |
File diff suppressed because it is too large
Load Diff
|
@ -125,6 +125,9 @@ if __name__ == "__main__":
|
||||||
parser.add_argument("-n", "--number", default=10, help="number of questions to ask", type=int, action="store")
|
parser.add_argument("-n", "--number", default=10, help="number of questions to ask", type=int, action="store")
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
filepath = pathlib.Path(args.file)
|
filepath = pathlib.Path(args.file)
|
||||||
|
if not filepath.exists():
|
||||||
|
print("no such file!")
|
||||||
|
exit(1)
|
||||||
interface = Tui()
|
interface = Tui()
|
||||||
app = Application(filepath, interface, args.number)
|
app = Application(filepath, interface, args.number)
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue