fix: allow hyphen values to -r/--line-range

via #2944
This commit is contained in:
Louis Maddox authored and Louis Maddox committed 2025-10-19 21:24:59 +01:00
1 parent 20db989fb1
commit 52a792d46f
4 files changed
+17 -1

No files matched your search

+1
View File
@@ -194,6 +194,7 @@ Options:
'--line-range :40' prints lines 1 to 40
'--line-range 40:' prints lines 40 to the end of the file
'--line-range 40' only prints line 40
'--line-range -10:' prints the last 10 lines
'--line-range 30:+10' prints lines 30 to 40
'--line-range 35::5' prints lines 30 to 40 (line 35 with 5 lines of context)
'--line-range 30:40:2' prints lines 28 to 42 (range 30-40 with 2 lines of context)