udpate
This commit is contained in:
@@ -384,6 +384,7 @@ export function parseArgs(args: string[]) {
|
||||
*/
|
||||
export const parseHomeArg = (homedir?: string) => {
|
||||
const args = process.argv.slice(2);
|
||||
const execPath = process.execPath;
|
||||
const options = parseArgs(args);
|
||||
let _configDir = undefined;
|
||||
if (options.home && homedir) {
|
||||
@@ -391,7 +392,9 @@ export const parseHomeArg = (homedir?: string) => {
|
||||
} else if (options.root) {
|
||||
_configDir = options.root;
|
||||
}
|
||||
const isOpencode = execPath.includes('.opencode') || execPath.includes('opencode.exe');
|
||||
return {
|
||||
isOpencode,
|
||||
options,
|
||||
configDir: _configDir,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user