@@ -25,15 +25,15 @@ export default async function handler(script: string, flags: CliFlags) {
2525const directoryMapping :ArrayStringMap < RepoOwner , string > =
2626new ArrayStringMap ( ) ;
2727const scanDirectories :Map < string , string [ ] > = new Map ( ) ;
28- if ( flags . searchPath ) {
28+ if ( flags . search ) {
2929// If it's one path, it won't be in an array. This converts it into an array.
30- if ( typeof flags . searchPath === "string" ) {
31- flags . searchPath = [ flags . searchPath ] ;
30+ if ( typeof flags . search === "string" ) {
31+ flags . search = [ flags . search ] ;
3232}
3333// What this code block does is simple. It stores in `scanDirectories`
3434// a mapping of source path name to an array of directories in that directory.
3535await Promise . all (
36- flags . searchPath . map ( async ( path ) => {
36+ flags . search . map ( async ( path ) => {
3737scanDirectories . set (
3838path ,
3939await filterAsync ( await readdir ( path ) , async ( item ) => {
@@ -52,6 +52,7 @@ export default async function handler(script: string, flags: CliFlags) {
5252for ( const [ path , directories ] of scanDirectories ) {
5353for ( const directory of directories ) {
5454if ( repo === directory ) {
55+ console . log ( `Found${ repo } in${ path } ` ) ;
5556directoryMapping . set ( [ owner , repo ] , path ) ;
5657break ;
5758}