MCPcopy
hub / github.com/nsonaniya2010/SubDomainizer / gitArgError

Function gitArgError

SubDomainizer.py:108–124  ·  view source on GitHub ↗

This function will check if both -g and -gt arguments were provided or not, required for GitHub scanning. Parameters ---------- gitToken : str Authtoken provided by github. isGit : None This argument will be used to tell the program to scan GitHub for informati

(gitToken, isGit)

Source from the content-addressed store, hash-verified

106
107
108def gitArgError(gitToken, isGit):
109 """
110
111 This function will check if both -g and -gt arguments were provided or not, required for GitHub scanning.
112
113 Parameters
114 ----------
115 gitToken : str
116 Authtoken provided by github.
117 isGit : None
118 This argument will be used to tell the program to scan GitHub for information.
119 """
120 if (gitToken is None and isGit is not None) or (gitToken is not None and isGit is None):
121 print("Either both '-g' and '-gt' arguments are required or none required. Exiting...")
122 sys.exit(1)
123 else:
124 pass
125
126
127def getRecursiveFolderData(rootfolder):

Callers 1

SubDomainizer.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected