diff --git a/scripts/commands/channels/lint.ts b/scripts/commands/channels/lint.ts
index c336a677..c865d7f6 100644
--- a/scripts/commands/channels/lint.ts
+++ b/scripts/commands/channels/lint.ts
@@ -1,7 +1,7 @@
import chalk from 'chalk'
import libxml, { ValidationError } from 'libxmljs2'
import { program } from 'commander'
-import { Logger, Storage, File } from '@freearhey/core'
+import { Storage, File } from '@freearhey/core'
const xsd = `
@@ -23,26 +23,14 @@ const xsd = `
`
-program
- .option(
- '-c, --channels ',
- 'Path to channels.xml file to validate',
- 'sites/**/*.channels.xml'
- )
- .parse(process.argv)
-
-const options = program.opts()
+program.argument('[filepath]', 'Path to *.channels.xml files to validate').parse(process.argv)
async function main() {
- const logger = new Logger()
const storage = new Storage()
- logger.info('options:')
- logger.tree(options)
-
let errors: ValidationError[] = []
- const files: string[] = await storage.list(options.channels)
+ const files = program.args.length ? program.args : await storage.list('sites/**/*.channels.xml')
for (const filepath of files) {
const file = new File(filepath)
if (file.extension() !== 'xml') continue