Package: stopwatcher Version: stopwatch Severity: wishlist Tags: patch
Wish: stopwatcher would include an option (e.g. -start) to execute it with the timer on. See the attached patch to implement it. -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (600, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores) Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) (ignored: LC_ALL set to [EMAIL PROTECTED]) Shell: /bin/sh linked to /bin/bash
--- /usr/bin/stopwatch 2008-07-02 13:13:46.000000000 +0200 +++ stopwatch 2008-12-01 23:38:47.191711029 +0100 @@ -392,6 +392,13 @@ " + .help.text insert end "Command line arguments" h1 + .help.text insert end " + +-start : executes stopwatcher with the timer on + +" + .help.text insert end "Caveats" h1 .help.text insert end { @@ -471,4 +478,8 @@ bind all <z> {.lapzero invoke} ; bind all <Control-z> {lapzr} bind all <Z> {.totalzero invoke} ; bind all <Control-Z> {totalzr} +set option_location [lsearch $argv "-start"] +if { $option_location >= 0 } { + start +}