X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;ds=sidebyside;f=xbatmon-simple-tray;h=e53945a4ab6e3c0010a07d59f964e5d06eda2cf9;hb=0ea9173f66089f0fc27a9d2751a44e15c16ca235;hp=876cccbd5266aff36b712014fbc7050fe18b5235;hpb=80b7c5d7160f63b9f16fd62534352b15e4c9ec6f;p=chiark-tcl-applet.git diff --git a/xbatmon-simple-tray b/xbatmon-simple-tray index 876cccb..e53945a 100755 --- a/xbatmon-simple-tray +++ b/xbatmon-simple-tray @@ -1,6 +1,10 @@ -#!/usr/bin/wish +#!/usr/bin/wish -f # -*- Tcl -*- +# usage: +# xbatmon-simple-tray +# [WISH-OPTIONS... [-- TRAY-EMBED-OPTIONS... [-- XBATMON-SIMPLE-OPTIONS...]]] + source applet.tcl source subproc.tcl source args.tcl @@ -11,10 +15,10 @@ proc cmdline {id orientation} { } while {[args::next_special arg]} { - switch -exact $arg { + switch -exact -- $arg { -- { break } default { args::badoption } } } -applet::setup-subproc $args::w $args::h $args::orientation $args::bc $args::bw cmdline +applet::setup-subproc cmdline