private static final String ARGFILEDIRNAME = "{argfiledirname}";
// flag to say whether {n} subtitutions in output filenames should be made.
- // Turn on and off with --subs and --nosubs
- private boolean substitutions = false;
+ // Turn on and off with --substitutions and --nosubstitutions
+ // Start with it on
+ private boolean substitutions = true;
// flag to say whether the default linkedId is the current default linked id
// or ALL linkedIds
// make NOACTION adjustments
// default and auto counter increments
- if (a == Arg.NEWFRAME)
- {
- defaultLinkedIdCounter++;
- }
- else if (a == Arg.NPP)
+ if (a == Arg.NPP)
{
linkedIdAutoCounter++;
}
{
argFile = null;
}
- else if (a == Arg.ALLFRAMES)
+ else if (a == Arg.ALL)
{
allLinkedIds = !negated;
}
+ // this is probably only Arg.NEW and Arg.OPEN
+ if (a.hasOption(Opt.INCREMENTDEFAULTCOUNTER))
+ {
+ // use the next default prefixed OPENLINKEDID
+ defaultLinkedId(true);
+ }
+
String autoCounterString = null;
boolean usingAutoCounterLinkedId = false;
String defaultLinkedId = defaultLinkedId(false);
{
if (linkedId == null)
{
- if (a.hasOption(Opt.INCREMENTDEFAULTCOUNTER))
- {
- // use the next default prefixed OPENLINKEDID
- defaultLinkedId = defaultLinkedId(true);
- }
if (allLinkedIds && a.hasOption(Opt.ALLOWALL))
{
linkedId = MATCHALLLINKEDIDS;
}
}
- // do not continue for NOACTION args
+ // do not continue in this block for NOACTION args
if (a.hasOption(Opt.NOACTION))
continue;