From 57bd6f96e007097219cdd31b034f8ca386927ed6 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 26 Aug 2013 05:59:07 +0000 Subject: dtas-{sink,source}edit: reduce redundant code These two are similar enough that it's possible to share some code between them and also increase user-friendliness at the same time. --- lib/dtas/disclaimer.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/dtas/disclaimer.rb') diff --git a/lib/dtas/disclaimer.rb b/lib/dtas/disclaimer.rb index 608956d..5747971 100644 --- a/lib/dtas/disclaimer.rb +++ b/lib/dtas/disclaimer.rb @@ -2,17 +2,18 @@ # :enddoc: # Copyright (C) 2013, Eric Wong # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt) +DTAS_PROGNAME = File.basename($0) DTAS_DISCLAIMER = <