summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authorNARUSE, Yui <naruse@airemix.jp>2025-12-24 22:52:23 +0900
committerNARUSE, Yui <naruse@airemix.jp>2025-12-24 22:55:44 +0900
commit285e22edc55522f3466357c4c27615a6015d84dc (patch)
tree3ef2305eeb40fbf5f81a08851262ba4e2bc5c786 /ruby.c
parentba2f6972193cdbd7c1e77e26212513e47926b115 (diff)
Revert "Add link to Ruby options doc in help text"
This reverts commit 31ff07ed1eb05d01f7da3c017d542137a3db1e94. * Don't add a test which only runs on production release * https://github.com/ruby/actions/actions/runs/20486784889/job/58870959976 * Don't add a new line to `ruby --help` * https://github.com/ruby/ruby/pull/14142#issuecomment-3689829564
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/ruby.c b/ruby.c
index 36d6ed203b..d7a608a00d 100644
--- a/ruby.c
+++ b/ruby.c
@@ -61,7 +61,6 @@
#include "ruby/util.h"
#include "ruby/version.h"
#include "ruby/internal/error.h"
-#include "version.h"
#define singlebit_only_p(x) !((x) & ((x)-1))
STATIC_ASSERT(Qnil_1bit_from_Qfalse, singlebit_only_p(Qnil^Qfalse));
@@ -408,10 +407,7 @@ usage(const char *name, int help, int highlight, int columns)
unsigned int w = (columns > 80 ? (columns - 79) / 2 : 0) + 16;
#define SHOW(m) show_usage_line(&(m), help, highlight, w, columns)
- printf("%sUsage:%s %s [options] [--] [filepath] [arguments]\n\n", sb, se, name);
- printf("Details and examples at https://docs.ruby-lang.org/en/%s/ruby/options_md.html\n",
- RUBY_PATCHLEVEL == -1 ? "master" : STRINGIZE(RUBY_VERSION_MAJOR) "." STRINGIZE(RUBY_VERSION_MINOR));
-
+ printf("%sUsage:%s %s [options] [--] [filepath] [arguments]\n", sb, se, name);
for (i = 0; i < num; ++i)
SHOW(usage_msg[i]);