Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add --inputfilter as alias for --inputextension #201

Merged
merged 2 commits into from
Sep 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/MainUtils.pas
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ interface
MSVISIO = 4;


DOCTO_VERSION = '1.8.39'; // dont use 0x - choco needs incrementing versions.
DOCTO_VERSION_NOTE = ' (Test version )';
DOCTO_VERSION = '1.8.40'; // dont use 0x - choco needs incrementing versions.
DOCTO_VERSION_NOTE = ' (Fix #200)';
type


Expand Down Expand Up @@ -1036,7 +1036,9 @@ procedure TDocumentConverter.LoadConfig(Params: TStrings);
dec(iparam);
END
else if (id = '-FX') or
(id = '--INPUTFILEEXTENSION') then
(id = '--INPUTFILEEXTENSION') or
(id = '--INPUTFILTER')
then
begin
InputExtension := value;
end
Expand Down
3 changes: 3 additions & 0 deletions src/res/HelpLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ Parameters markers are case insensitive.
-FX Input Extension to search for if directory. (.rtf .txt etc)
Default ".doc*" (will find ".docx" also)
--inputextension
--inputfilter
Filter Files to input. Property*.doc will match Property1.doc,
Property2.doc etc
-O Output File or Directory to place converted Docs
--outputfile
-OX Output Extension if -F is Directory. Please include '.' eg. '.pdf' .
Expand Down