comp.lang.ada
 help / color / mirror / Atom feed
From: Brian Drummond <brian@shapes.demon.co.uk>
Subject: Re: GCLP (Generic Command Line Parser) 1.0.0 released
Date: Tue, 18 Dec 2012 15:33:22 +0000 (UTC)
Date: 2012-12-18T15:33:22+00:00	[thread overview]
Message-ID: <kaq2c2$goh$2@dont-email.me> (raw)
In-Reply-To: 142eeaa9-839c-412e-8eec-c7aff4ef8b8b@googlegroups.com

On Sat, 15 Dec 2012 10:08:05 -0800, mockturtle wrote:

> On Saturday, December 15, 2012 5:57:07 PM UTC+1, Hibou57 (Yannick
> Duchêne) wrote:

>> If the command line become too complex, that may suggest the command is
>> 
>> not well suited for the matter. May be a configuration file or project
>> 
>> file, using XML, could be an option. 

> Yes, I understand, but between a simple command like
> 
>       cp src dst
> 
> and a command that makes it convenient to give parameters via a
> configuration file (maybe in XML format), there is a gray area where a
> positional syntax is too complex (was the port number the first
> parameter?  or the third?), but the complexity of a configuration file
> is not justified (maybe also because you use the command only once). 

Perhaps you can combine the two modes : the GCLP could read a complex 
command line, or some/all of the options - in the exact same syntax - 
from file. It would make refactoring complex command lines effortless...

- Brian



      reply	other threads:[~2012-12-18 15:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-14 21:17 GCLP (Generic Command Line Parser) 1.0.0 released mockturtle
2012-12-14 23:33 ` Yannick Duchêne (Hibou57)
2012-12-15 16:20   ` mockturtle
2012-12-15 16:57     ` Yannick Duchêne (Hibou57)
2012-12-15 18:08       ` mockturtle
2012-12-18 15:33         ` Brian Drummond [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox