aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2017-03-07 09:11:09 -0500
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:14 -0400
commit5a4df097b2976c24c449c56cf035995edfb1261e (patch)
tree9112c6f32f1b9a8d7cdc7849754d6b8f602de0c5 /src/sdp.d
parentorg files minor touches (diff)
0.13.6 dlang function calls, syntax (ufcs related), logic should be retained
Diffstat (limited to 'src/sdp.d')
-rwxr-xr-xsrc/sdp.d6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sdp.d b/src/sdp.d
index 2e3aedd..4214e83 100755
--- a/src/sdp.d
+++ b/src/sdp.d
@@ -143,9 +143,9 @@ void main(string[] args) {
defaultGetoptPrinter("Some information about the program.", helpInfo.options);
}
foreach(arg; args) {
- if (match(arg, rgx.flag_action)) {
+ if (arg.match(rgx.flag_action)) {
flag_action ~= " " ~ arg; // flags not taken by getopt
- } else if (match(arg, rgx.src_pth)) {
+ } else if (arg.match(rgx.src_pth)) {
fns_src ~= arg; // gather input markup source file names for processing
} else { // anything remaining, unused
arg_unrecognized ~= " " ~ arg;
@@ -181,7 +181,7 @@ void main(string[] args) {
}
}
enforce(
- match(fn_src, rgx.src_pth),
+ fn_src.match(rgx.src_pth),
"not a sisu markup filename"
);
auto t =