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)
| 106 | |
| 107 | |
| 108 | def 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 | |
| 127 | def getRecursiveFolderData(rootfolder): |