File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -23,22 +23,20 @@ import argparse;
23
23
)
24
24
struct Options
25
25
{
26
- @TrailingArguments string [] files;
27
26
bool comment = false ;
28
27
string [] str;
29
28
// (Deprecated) A list of files to minify (for backwards compatiblitity with getopt)
30
29
string [] file;
31
30
}
32
31
33
- int actualMain (Options opts) @trusted
32
+ int actualMain (Options opts, string [] files ) @trusted
34
33
{
35
34
try
36
35
{
37
36
// minify the given files
38
- if (opts. files.length > 0 || opts.file.length > 0 )
37
+ if (files.length > 0 || opts.file.length > 0 )
39
38
{
40
- const auto files = opts.files ~ opts.file;
41
- minifyFiles(files, opts.comment);
39
+ minifyFiles(files ~ opts.file, opts.comment);
42
40
}
43
41
44
42
// minify the given string and print to stdout
@@ -62,4 +60,4 @@ int actualMain(Options opts) @trusted
62
60
return 0 ;
63
61
}
64
62
65
- mixin CLI ! Options.main! ((args ) { return actualMain(args ); });
63
+ mixin CLI ! Options.main! ((opts, unparsed ) { return actualMain(opts, unparsed ); });
You can’t perform that action at this time.
0 commit comments