Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 697768c

Browse files
committed
adding --purge-output to be one of mandatory switches
1 parent d57d5e4 commit 697768c

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/core/option.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1968,7 +1968,7 @@ def init(inputOptions=AttribDict(), overrideOptions=False):
19681968
parseTargetUrl()
19691969
parseTargetDirect()
19701970

1971-
if any([conf.url, conf.logFile, conf.bulkFile, conf.requestFile, conf.googleDork, conf.liveTest]):
1971+
if any((conf.url, conf.logFile, conf.bulkFile, conf.requestFile, conf.googleDork, conf.liveTest)):
19721972
__setHTTPTimeout()
19731973
__setHTTPExtraHeaders()
19741974
__setHTTPCookies()

lib/core/purge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def purge(directory):
2323
if not os.path.isdir(directory):
2424
return
2525

26-
infoMsg = "purging content of directory ('%s'). Please wait. This could take a while..." % directory
26+
infoMsg = "purging content of directory ('%s'). Please wait as this could take a while" % directory
2727
logger.info(infoMsg)
2828

2929
filepaths = []

lib/parse/cmdline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -665,8 +665,8 @@ def cmdLineParser():
665665
break
666666

667667
if not any((args.direct, args.url, args.logFile, args.bulkFile, args.googleDork, args.configFile, \
668-
args.requestFile, args.updateAll, args.smokeTest, args.liveTest, args.realTest, args.wizard, args.dependencies)):
669-
errMsg = "missing a mandatory option (-d, -u, -l, -m, -r, -g, -c, --wizard, --update or --dependencies), "
668+
args.requestFile, args.updateAll, args.smokeTest, args.liveTest, args.realTest, args.wizard, args.dependencies, args.purgeOutput)):
669+
errMsg = "missing a mandatory option (-d, -u, -l, -m, -r, -g, -c, --wizard, --update, --purge-output or --dependencies), "
670670
errMsg += "use -h for help"
671671
parser.error(errMsg)
672672

0 commit comments

Comments
 (0)