Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Provide ability to add custom arguments in command

未关闭
#544 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
node.js
领域
cli, testing

调研方向

未指定源文件或测试。首先定位用于运行 Lab unit tests 的命令处理入口,并跟踪参数是如何被验证或传递的。当类似 lab -S -l -m 20000 -M 20000 --generate-pdf 的命令能够接受自定义参数且不会阻止测试运行时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

feature
Runtime

node.js

Runtime version

v22.11.0

Module version

25.1.3

Used with

Unit test for api

Any other relevant information

It would be amazing if we could add our custom flag or argument to the command for running test.

I have a case where I would like to optionally generate file along my unit test.

What problem are you trying to solve?

Currently it prevents me to add custom flags

lab -S -l -m 20000 -M 20000 --generate-pdf

this will not let me run the command.

Do you have a new or modified API suggestion to solve the problem?

No response

主要语言
Vue
星标
55
派生
72
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

hapijs/hapi.dev 的其他 Issue

查看 hapijs/hapi.dev 的全部 Issue

相似的 Issue

更多 CLI Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。