1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-22 07:48:52 -05:00

Expect file arguments for any argument that is not an option

This commit is contained in:
Reinhard Pointner 2019-06-07 01:01:14 +07:00
parent f10bc289c6
commit 5cd729f5ab
2 changed files with 3 additions and 3 deletions

View File

@ -186,7 +186,8 @@ function _picocli_filebot() {
if [[ "${CURR_WORD}" == -* ]]; then
COMPREPLY=( $(compgen -W "${FLAG_OPTS} ${ARG_OPTS}" -- ${CURR_WORD}) )
else
COMPREPLY=( $(compgen -W "${COMMANDS}" -- ${CURR_WORD}) )
compopt -o filenames
COMPREPLY=( $( compgen -f -- ${CURR_WORD} ) ) # files
fi
}

View File

@ -5,7 +5,6 @@ import static net.filebot.WebServices.*;
import java.io.File;
import java.lang.reflect.Field;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
@ -129,7 +128,7 @@ class BashCompletionBuilder {
public File license;
@Parameters
public List<String> arguments = new ArrayList<String>();
public List<File> arguments;
private static class DatabaseCompletionCandidates implements Iterable<String> {