add basic argv read
This commit is contained in:
parent
e7b071f96e
commit
cb6008c385
|
@ -0,0 +1 @@
|
|||
noop
|
|
@ -1,2 +1,11 @@
|
|||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
def main():
|
||||
print('hello world')
|
||||
try:
|
||||
scri_path = Path(sys.argv[1]).resolve()
|
||||
except IndexError:
|
||||
print(f'usage: {sys.argv[0]} path/to/file.scri')
|
||||
return
|
||||
print('path', scri_path)
|
||||
#run(scri_path)
|
||||
|
|
Loading…
Reference in New Issue