mirror of
https://github.com/NohamR/pdfy.git
synced 2026-10-11 02:39:58 +00:00
Add commander lib to handle CLI
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import process from "node:process";
|
||||
import path from "node:path";
|
||||
import { parseArgs, printUsage, VALID_THEMES } from "./cli.js";
|
||||
import { parseArgs, VALID_THEMES } from "./cli.js";
|
||||
import { loadPreferences, readCustomCss } from "./config.js";
|
||||
import {
|
||||
checkExtension,
|
||||
@@ -27,10 +27,6 @@ const EXTENSION_BASE = "chrome-extension://";
|
||||
|
||||
async function main() {
|
||||
const { url, opts } = parseArgs();
|
||||
if (!url) {
|
||||
printUsage();
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
checkExtension();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user