File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,7 @@ static void Main(string[] args) {
18
18
}
19
19
20
20
string [ ] projectFiles ;
21
- if ( args [ 0 ] . EndsWith ( ".csproj" ) ) {
22
- projectFiles = new string [ ] { args [ 0 ] } ;
23
- } else if ( Directory . Exists ( args [ 0 ] ) ) {
21
+ if ( Directory . Exists ( args [ 0 ] ) ) {
24
22
projectFiles = Directory . EnumerateFiles ( args [ 0 ] , "*.csproj" , SearchOption . AllDirectories ) . ToArray ( ) ;
25
23
} else {
26
24
WriteHelp ( ) ;
@@ -32,15 +30,15 @@ static void Main(string[] args) {
32
30
foreach ( var projectFilePath in projectFiles ) {
33
31
var projectPath = Path . GetDirectoryName ( projectFilePath ) ;
34
32
var basePath = Path . GetDirectoryName ( projectPath ) + Path . DirectorySeparatorChar ;
35
- var outputPath = Path . Combine ( outputBasePath , projectPath . TrimStart ( basePath ) , "OrchardCore .pot") ;
33
+ var outputPath = Path . Combine ( outputBasePath , projectPath . TrimStart ( basePath ) + " .pot") ;
36
34
37
35
ProcessProject ( projectPath , basePath , outputPath ) ;
38
36
}
39
37
}
40
38
41
39
private static void WriteHelp ( ) {
42
40
Console . WriteLine ( "Usage: PoExtractor.exe input output" ) ;
43
- Console . WriteLine ( " input: Path to a .cproj file to proccess single project or a path to prcess all project in the specified path " ) ;
41
+ Console . WriteLine ( " input: Path to input directory, all projects at the the path will be processed " ) ;
44
42
Console . WriteLine ( " output: Path to a directory where POT files will be generated" ) ;
45
43
}
46
44
You can’t perform that action at this time.
0 commit comments