Skip to content

Commit

Permalink
Change the default args list expansion extension to .args. (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmnbroad authored Nov 7, 2017
1 parent b2e9b07 commit 61857ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public final class CommandLineArgumentParser implements CommandLineParser {
public static final String POSITIONAL_ARGUMENTS_NAME = "Positional Argument";

// Extension for collection argument list files
private static final String COLLECTION_LIST_FILE_EXTENSION = ".list";
static final String COLLECTION_LIST_FILE_EXTENSION = ".args";

private static final Logger logger = LogManager.getLogger();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ public void testCollectionThatCannotBeAutoInitialized() {
// Helper methods

private File createListArgumentFile(final String fileName, final String[] argList) throws IOException {
final File listFile = File.createTempFile(fileName, ".list");
final File listFile = File.createTempFile(fileName, CommandLineArgumentParser.COLLECTION_LIST_FILE_EXTENSION);
listFile.deleteOnExit();
try (final PrintWriter writer = new PrintWriter(listFile)) {
Arrays.stream(argList).forEach(arg -> writer.println(arg));
Expand Down

0 comments on commit 61857ed

Please sign in to comment.