mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-24 13:23:40 +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
|
||||
@ -38,3 +38,5 @@ else:
|
||||
datalst=dataFileBase.readFromTable(dat,texOps,commands=commands)
|
||||
for data in datalst:
|
||||
data.toFile(datapath,texOps.suffix)
|
||||
else:
|
||||
parser.print_help()
|
Loading…
Reference in New Issue
Block a user