mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-23 21:03:54 +01:00
Print help message when no file or list arguments
This commit is contained in:
parent
d1e1b10285
commit
109ab8b0c5
@ -19,7 +19,7 @@ if args.list:
|
||||
print("The list of avalable formats are:")
|
||||
for formatName,_ in getFormatHandlers():
|
||||
print(formatName)
|
||||
else:
|
||||
elif args.file!=None:
|
||||
lines=args.file.readlines()
|
||||
soup=TexSoup(lines)
|
||||
opt=soup.dfbOptions
|
||||
@ -37,4 +37,6 @@ else:
|
||||
datapath.mkdir()
|
||||
datalst=dataFileBase.readFromTable(dat,texOps,commands=commands)
|
||||
for data in datalst:
|
||||
data.toFile(datapath,texOps.suffix)
|
||||
data.toFile(datapath,texOps.suffix)
|
||||
else:
|
||||
parser.print_help()
|
Loading…
Reference in New Issue
Block a user