public class BuckArgsMethods extends Object
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.collect.ImmutableList<String> |
expandAtFiles(Iterable<String> args,
com.google.common.collect.ImmutableMap<CellName,AbsPath> cellMapping)
Expand AT-file syntax in a way that matches what args4j does.
|
static com.google.common.collect.ImmutableList<String> |
filterArgs(List<String> args,
com.google.common.collect.ImmutableSet<String> optionsToSkip)
Drops options from the args array.
|
public static com.google.common.collect.ImmutableList<String> expandAtFiles(Iterable<String> args, com.google.common.collect.ImmutableMap<CellName,AbsPath> cellMapping)
In addition to files passed using a regular @ syntax, this method also extracts
command line arguments from AT-file syntax files passed via --flagfile command line
option.
args - original args arraycellMapping - a map from cell names to their rootspublic static com.google.common.collect.ImmutableList<String> filterArgs(List<String> args, com.google.common.collect.ImmutableSet<String> optionsToSkip)
args - args array.optionsToSkip - if args contains an element from this array skip the element and the
element immediately after it.