@@ -24,9 +24,6 @@ public override bool HandleFlag(string key, bool value)
2424 case "dry-run" :
2525 SkipExtraction = value ;
2626 return true ;
27- case "skip-psmodulepath-files" :
28- SkipPSModulePathFiles = value ;
29- return true ;
3027 default :
3128 return base . HandleFlag ( key , value ) ;
3229 }
@@ -77,7 +74,7 @@ public override void InvalidArgument(string argument)
7774 /// <summary>
7875 /// List of extensions to include.
7976 /// </summary>
80- public IList < string > Extensions { get ; } = new List < string > ( ) { ".ps1" , ".psd1" } ;
77+ public IList < string > Extensions { get ; } = new List < string > ( ) { ".ps1" } ;
8178
8279 /// <summary>
8380 /// Files/patterns to exclude.
@@ -130,12 +127,6 @@ private static FileInfo[] GetDefaultFiles()
130127 /// </summary>
131128 public bool SkipExtraction { get ; private set ; } = false ;
132129
133- /// <summary>
134- /// Whether to extract files in the paths found in the `PSModulePath`
135- /// environment variable.
136- /// </summary>
137- public bool SkipPSModulePathFiles { get ; private set ; } = false ;
138-
139130 /// <summary>
140131 /// Whether errors were encountered parsing the arguments.
141132 /// </summary>
@@ -167,14 +158,13 @@ public static void ShowHelp(System.IO.TextWriter output)
167158 "PowerShell# standalone extractor\n \n Extracts PowerShell scripts in the current directory.\n "
168159 ) ;
169160 output . WriteLine ( "Additional options:\n " ) ;
170- output . WriteLine ( " <path> Use the provided path instead." ) ;
161+ output . WriteLine ( " <path> Use the provided path instead." ) ;
171162 output . WriteLine (
172- " --exclude:xxx Exclude a file or directory (can be specified multiple times)"
163+ " --exclude:xxx Exclude a file or directory (can be specified multiple times)"
173164 ) ;
174- output . WriteLine ( " --dry-run Stop before extraction" ) ;
175- output . WriteLine ( " --threads:nnn Specify number of threads (default=CPU cores)" ) ;
176- output . WriteLine ( " --verbose Produce more output" ) ;
177- output . WriteLine ( " --skip-psmodulepath-files Avoid extracting source files in paths specified by the PSModulePath environment variable." ) ;
165+ output . WriteLine ( " --dry-run Stop before extraction" ) ;
166+ output . WriteLine ( " --threads:nnn Specify number of threads (default=CPU cores)" ) ;
167+ output . WriteLine ( " --verbose Produce more output" ) ;
178168 }
179169
180170 private Options ( ) { }
0 commit comments