Skip to content

Commit

Permalink
fix: Don't strict on certain commands
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Jun 13, 2024
1 parent 9bfd041 commit c74e074
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions cmds/core/docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ exports.builder = async (yargs) => {
yargs.help(false);
yargs.version(false);
yargs.getOptions().narg = [];
yargs.strict(false);
yargs.positional('<version>', {
description: 'Emacs version to test',
type: 'string',
Expand Down
2 changes: 1 addition & 1 deletion cmds/core/emacs.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ exports.builder = async (yargs) => {
yargs.help(false);
yargs.version(false);
yargs.getOptions().narg = [];
yargs.strict(false);
};

exports.handler = async (argv) => {
Expand All @@ -39,7 +40,6 @@ exports.handler = async (argv) => {

UTIL.setup_env();
let proc = child_process.spawn(UTIL.cli_args(cmd), { stdio: 'inherit', shell: true });

proc.on('close', function (code) {
if (code == 0) return;
process.exit(code);
Expand Down
2 changes: 1 addition & 1 deletion cmds/core/exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ exports.builder = async (yargs) => {
yargs.help(false);
yargs.version(false);
yargs.getOptions().narg = [];
//console.warn(yargs.getOptions());
yargs.strict(false);
};

exports.handler = async (argv) => {
Expand Down

0 comments on commit c74e074

Please sign in to comment.