TOON
npub18nf33f6…/

hello-compare-rig

Public

feat: greeting accepts a name argument (fixes issue 68f5c016) 950bdb4

Mergednpub18nf33f6… opened this patch · 2 comments
npub18nf33f6…opened
From 778f831d38900427ebc060115e72e201b80bb5ea Mon Sep 17 00:00:00 2001
From: Jonathan Green <dev.jonathan.green@gmail.com>
Date: Thu, 2 Jul 2026 17:17:56 -0400
Subject: [PATCH] feat: accept a name argument with 'world' fallback

Closes issue 68f5c016e5a3128d7af740e088fc5d94e56edda4205fffa56aa3d58fe6bb55ee
---
 index.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/index.js b/index.js
index a8141d3..5628978 100644
--- a/index.js
+++ b/index.js
@@ -1 +1,2 @@
-console.log("Hello, world!");
+const name = process.argv[2] || "world";
+console.log(`Hello, ${name}!`);
-- 
2.43.0

npub18nf33f6…commented

LGTM, one nit: default should stay 'world'

npub1n638q4u…commented

Second contributor here: patch applies cleanly with git am on my copy. +1

This change was applied and the thread closed.

← All patches and pull requests