Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #5027
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | Victor Porton <porton@narod.ru> |
| Newsgroups | comp.programming |
| Subject | Re: Suggest a command line syntax |
| Date | Mon, 22 Dec 2014 20:48:03 +0200 |
| Organization | Aioe.org NNTP Server |
| Lines | 26 |
| Message-ID | <m79p1a$vff$1@speranza.aioe.org> (permalink) |
| References | <m79mpq$p0h$1@speranza.aioe.org> <VCZlw.288824$td6.82371@fx30.am4> |
| NNTP-Posting-Host | Oylr40EpnmVrDCKwFooyUw.user.speranza.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="ISO-8859-1" |
| Content-Transfer-Encoding | 7Bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | KNode/4.14.1 |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| Xref | csiph.com comp.programming:5027 |
Show key headers only | View raw
Richard Heathfield wrote: > Anyway, assuming that's the general idea, the command line syntax could be > something like: > > > > programname -<options> -pairs p1a p1b [p2a p2b [p3a p3b [...]]] filespec This way it is easy to confuse <filespec> with pairs. > Options would be, for example, case-insensitivity (-i) and the like. Then > would come the pairs - the switch '-pairs' might be considered surplus to > requirements, so feel free to ditch it - and finally there is the file > specification (if you're on Unix, you can just let globbing happen). > > Alternatively, if there are many pairs, you could put them in a tab- > separated file, one pair per line, and specify the filename - e.g. > > programname -i -f=swappairs.tsv j*.txt Hm, maybe to use CSV instead? It allows encoding arbitrary strings including comma and tab. -- Victor Porton - http://portonvictor.org
Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Suggest a command line syntax Victor Porton <porton@narod.ru> - 2014-12-22 20:10 +0200
Re: Suggest a command line syntax Richard Heathfield <invalid@see.sig.invalid> - 2014-12-22 18:42 +0000
Re: Suggest a command line syntax Victor Porton <porton@narod.ru> - 2014-12-22 20:48 +0200
Re: Suggest a command line syntax Richard Heathfield <invalid@see.sig.invalid> - 2014-12-22 19:44 +0000
Re: Suggest a command line syntax Kaz Kylheku <kaz@kylheku.com> - 2014-12-22 20:09 +0000
Re: Suggest a command line syntax Robert Wessel <robertwessel2@yahoo.com> - 2014-12-22 14:46 -0600
Re: Suggest a command line syntax Kaz Kylheku <kaz@kylheku.com> - 2014-12-22 21:40 +0000
csiph-web