ArchiveCommand constructor

ArchiveCommand()

Implementation

ArchiveCommand() {
  argParser.addOption(
    'target',
    valueHelp: 'file',
    help: 'file name',
  );
  argParser.addFlag(
    'relative',
    negatable: true,
    defaultsTo: true,
    help: 'archive source use relative directory.',
  );
  argParser.addOption(
    'tail',
    defaultsTo: '0',
    help: 'tail source injection to target.',
  );
  argParser.addOption(
    'type',
    defaultsTo: typeDefault,
    allowed: typeNames,
    allowedHelp: {
      'tgz': 'tarball use gzip compressed',
      'tar': 'tarball not compressed',
    },
    help: 'file type (tgz, tar)',
  );
}