at 23.05-pre 21 lines 1.2 kB view raw
1--- a/taoup 2021-09-07 16:45:00.000000000 +0800 2+++ b/taoup 2021-09-07 16:46:00.000000000 +0800 3@@ -7,12 +7,12 @@ 4 5 # show help if requested 6 if ARGV[0] == '--help' or ARGV[0] == '-h' then 7- puts "usage: " + $0 + " [arguments]" 8- puts " " + $0 + " Display all fortunes and sections." 9- puts " " + $0 + " < --help | -h > This help." 10- puts " " + $0 + " --whitetrash Convert ANSI colors for light/white terminals." 11- puts " " + $0 + " --machine Remove ANSI colors." 12- puts " " + $0 + " --fortune Convert output to fortune format (and lose colors)." 13+ puts "usage: " + "@pname@" + " [arguments]" 14+ puts " " + "@pname@" + " Display all fortunes and sections." 15+ puts " " + "@pname@" + " < --help | -h > This help." 16+ puts " " + "@pname@" + " --whitetrash Convert ANSI colors for light/white terminals." 17+ puts " " + "@pname@" + " --machine Remove ANSI colors." 18+ puts " " + "@pname@" + " --fortune Convert output to fortune format (and lose colors)." 19 exit(0) 20 end 21 # ... but optionally make sure ANSI escape sequences are filtered out