From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Message-id: <99240531-8057-4BFA-BA18-D100D397CC63@mac.com> From: Pietro Gagliardi To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> In-reply-to: <20080612034450.30B801E8C53@holo.morphisms.net> Date: Wed, 11 Jun 2008 23:57:37 -0400 References: <20080612034450.30B801E8C53@holo.morphisms.net> Subject: Re: [9fans] First/second edition image manipulation tools Topicbox-Message-UUID: bba86ea6-ead3-11e9-9d60-3106f5b1d025 On Jun 11, 2008, at 11:46 PM, Russ Cox wrote: >> The first edition specified the arguments to -o as two values - >> this cannot be done >> due to idiosyncrasies with args(2). > > case 'o': > arg1 = EARGF(usage()); > arg2 = EARGF(usage()); > break; > > russ > > According to arg(2), that's not a good idea. "ARGF must be called just once for each option that takes an argument." See if your code works.