5 ms·
Downloads/firebuilder-darwin-arm64 24334 | allowPositionals: true 24335 | }); 24336 | var PROFILE_PATH_CLI = args.positionals[2]; 24337 | var THIS_DIR2 = __di
by KennyBlanken 2y ago
Downloads/firebuilder-darwin-arm64
24334 | allowPositionals: true
24335 | });
24336 | var PROFILE_PATH_CLI = args.positionals[2];
24337 | var THIS_DIR2 = __dirname;
24338 | var MODULE_DIR2 = resolve4(THIS_DIR2, "modules");
24339 | var OPTIONS = Object.fromEntries(readdirSync2(resolve4(MODULE_DIR2)).filter((i) => lstatSync2(join8(MODULE_DIR2, i)).isDirectory()).map((i) => ({
^
ENOENT: No such file or directory
errno: -2
syscall: "open"
path: "/Users/tjs/Documents/.coding/firefox-profile-creator/modules"
at /$bunfs/root/firebuilder-darwin-arm64:24339:34
Downloads/firebuilder-darwin-arm64 --help
24322 | import {parseArgs} from "util";
24323 | import {homedir as homedir2} from "os";
24324 | var __dirname = "/Users/tjs/Documents/.coding/firefox-profile-creator";
24325 | var APP_PATH = join8("/Applications", "Firefox.app", "Contents", "MacOS", "firefox");
24326 | var PROFILES_PATH = resolve4(homedir2(), "Library", "Application Support", "Firefox", "Profiles");
24327 | var args = parseArgs({
args: Bun.argv,
options: {
launch: {
type: "boolean"
}
},
allowPositionals: true
});
^
TypeError: Unknown option '--help'. To specify a positional argument starting with a '-', place it at the end of the command after '--', as in '-- "--help"
code: "ERR_PARSE_ARGS_UNKNOWN_OPTION"
at /$bunfs/root/firebuilder-darwin-arm64:24327:12
Little documentation on how to use it, either...
- explosion-s 2y agoSomehow it has hard coded something wrong - I'm so sorry I literally just tested it. Actually moving into college tomorrow but I might be able to fix it the next day. Try cloning and 'bun run cli.js' in the meantime? I'll fix asap
- explosion-s 2y agoUpdate: After a tough 24 minutes I have fixed the bug! Apparently it's an issue with old versions of Bun so I had to upgrade, but I also added a `--help` flag and usage.