Check(nottesturls,"test urls not implemented yet")
htmlmode=notBool(args.plain)
header=Str(args.header,False)
url=Str(args.url)
ifurl[-1]=='/':
ERR("no trailing '/' in url, please remove")
Check(url[-1]!='/',"no trailing '/' in url, please remove")
outputfile=Str(args.o)
bsfileidmode=Bool(args.bsfileidmode)
ouid=Str(args.ouid,False)
iflen(ouid)>0:
ouid=int(ouid)
else:
ouid=-1
assertisInt(ouid)
ouid=Int(Int(int(ouid))iflen(ouid)>0else-1,-1)
excludepath+=","+Str(args.excludepath)
assertexcludepath.find(" ")<0
...
...
@@ -218,8 +186,7 @@ if __name__ == '__main__':
#if bsfileidmode and len(url)>0:
# ERR("cannot specify -url and -bsfileidmode at the same time")
ifouid>0andnotbsfileidmode:
ERR("canot specify -ouid without -bsfileidmode")
Check(not(ouid>0andnotbsfileidmode),"canot specify -ouid without -bsfileidmode")
root="./"
Dbg(verbose,f"{Col('PURPLE')}GENERATING html file tree from root '{root}'"+((""ifbsfileidmodeelsef", (url='{url}')")ifverbose>0else"")+f"..{ColEnd()}")