google-photos-migrate
Version:
A tool to fix EXIF data and recover filenames from a Google Photos takeout.
45 lines (44 loc) • 1.44 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.commonArgs = void 0;
const cmd_ts_1 = require("cmd-ts");
exports.commonArgs = {
errorDir: (0, cmd_ts_1.positional)({
type: cmd_ts_1.string,
displayName: 'error_dir',
description: 'Failed media will be saved here.',
}),
force: (0, cmd_ts_1.flag)({
short: 'f',
long: 'force',
description: "Forces the operation if the given directories aren't empty.",
}),
timeout: (0, cmd_ts_1.option)({
type: cmd_ts_1.number,
defaultValue: () => 30000,
short: 't',
long: 'timeout',
description: 'Sets the task timeout in milliseconds that will be passed to ExifTool.',
}),
skipCorrections: (0, cmd_ts_1.flag)({
long: 'skip-corrections',
description: 'Skips renaming wrong extensions identified by ExifTool.',
}),
verbose: (0, cmd_ts_1.flag)({
short: 'v',
long: 'verbose',
description: 'Enables verbose logging.',
}),
renameEmpty: (0, cmd_ts_1.option)({
type: cmd_ts_1.string,
defaultValue: () => '_',
long: 'rename-empty',
description: 'Use this name for empty filenames.',
}),
exiftoolArgs: (0, cmd_ts_1.multioption)({
type: (0, cmd_ts_1.array)(cmd_ts_1.string),
short: 'e',
long: 'exiftool-arg',
description: '',
}),
};