Package: yagtd
Version: 0.3.0-1
Severity: wishlist
Tags: patch

Hi,

I'm submitting a patch to add a --quiet option for not printing the copyright
message upon startup.

Cheers,
Serafeim

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (100, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=el_GR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages yagtd depends on:
ii  python                        2.5.4-9    An interactive high-level object-o
ii  python-support                1.0.8      automated rebuilding support for P

yagtd recommends no packages.

yagtd suggests no packages.

-- no debconf information
diff -urp yagtd-0.3.0.orig//doc/yagtd.1 yagtd-0.3.0/doc/yagtd.1
--- yagtd-0.3.0.orig//doc/yagtd.1	2009-11-06 21:28:42.000000000 +0100
+++ yagtd-0.3.0/doc/yagtd.1	2010-06-06 14:36:40.000000000 +0200
@@ -30,6 +30,9 @@ The manual also includes a practical int
 .IP "\fB\-c, --color"
 Activate color highlighting
 
+.IP "\fB\-q, --quiet"
+Do not print copyright message
+
 .SH SEE ALSO
 .P
 The yagtd manual. Installed on Debian systems in
Μόνο στο yagtd-0.3.0/src: gtd.pyc
diff -urp yagtd-0.3.0.orig//src/yagtd.py yagtd-0.3.0/src/yagtd.py
--- yagtd-0.3.0.orig//src/yagtd.py	2009-11-06 22:55:14.000000000 +0100
+++ yagtd-0.3.0/src/yagtd.py	2010-06-06 14:35:58.000000000 +0200
@@ -1138,6 +1138,9 @@ def main(options, todotxt=TODO_TXT, todo
     if options.color:
         gtd_cmd.colorize = True
 
+    if options.quiet:
+        gtd_cmd.intro = ""
+
     try:
         # Enter the main cmdloop
         gtd_cmd.cmdloop()
@@ -1157,6 +1160,9 @@ if __name__ == "__main__":
                     action="store_true", dest="color", 
                     default=False,
                     help="activate color highlightment"),
+        make_option( "-q", "--quiet",
+                    action="store_true", dest="quiet",
+                    help="do not print the copyright message")
         ]
 
     parser = OptionParser(usage="python -O %prog [options] todo.txt", 

Reply via email to