import * as program from 'commander'
import { join } from 'path'
import { doRequestAndSaveToFile } from '../helpers/requests'
import * as program from 'commander'
import { join } from 'path'
import { doRequestAndSaveToFile } from '../helpers/requests'
function normalizeTargetUrl (url: string) {
let normalizedUrl = url.replace(/\/+$/, '')
function normalizeTargetUrl (url: string) {
let normalizedUrl = url.replace(/\/+$/, '')