Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | remove deprecated stuff from the stdlib; introduce better deprecation warnings | Araq | 2018-05-05 | 1 | -2/+0 |
| | |||||
* | parseopt stdlib module: dont rely on the zero terminator | Andreas Rumpf | 2018-04-29 | 1 | -23/+25 |
| | |||||
* | Add ability for users to elide ':' or '=' when CLI authors pass a (#7297) | c-blake | 2018-03-08 | 1 | -22/+63 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add ability for users to elide ':' or '=' when CLI authors pass a non-empty partial symbol table. Behavior should be identical to the old behavior if empty partial symbol tables are passed. "Partialness" of the symbol table refers to the fact that one need only specify option keys that are toggles/booleans/do not take arguments, hence the "NoArg" suffixes in shortNoArg and longNoArg. commandLineParams() returns seq[TaintedString], so use that consistently in getopt() and initOptParser(seq[TaintedString]) dropping the taint at the quoting stage just as with the paramStr() logic. Fix capitalization inconsistency of cmdLongOption. Export OptParser.cmd and OptParser.pos so that, at least *in principle*, users of this API can handle "--" option processing termination or some "git-like" sub-command stop word with a separate option sub-syntax. { Eg., ``case p.key of "": echo "trailing non-option args: ", p.cmd[p.pos..^1]`` or ``case p.kind of cmdArgument: if p.key == "mysubcmd": ...``. } Really, searching for the last delimiter before p.pos is probably needed to frame the trailing text..Not the nicest API, but still possible with effort. * Make requested changes from string to seq[char] (see https://github.com/nim-lang/Nim/pull/7297) * Document new behavior and elaborate on some special cases. * NoArg => NoVal to be less ambiguous/more clear. * Add more documentation and an example snippet. * Tweak language. Clarify still using ':'/'=' is ok. * Add a test case for new NoVal behavior. | ||||
* | make travis green again | Andreas Rumpf | 2018-03-01 | 1 | -18/+18 |
| | |||||
* | added -d:nimNoArrayToString define to allow easier porting to 0.18 | Araq | 2018-03-01 | 1 | -1/+19 |
| | |||||
* | fixes parseopt/parseopt2 custom cmdline args. | Parashurama | 2017-06-06 | 1 | -15/+30 |
| | |||||
* | docs now build again | Araq | 2015-10-12 | 1 | -0/+178 |
| | |||||
* | Move deprecated modules into lib/deprecated/ | Adam Strzelecki | 2015-09-30 | 1 | -178/+0 |
| | | | | | This gives clear indication what modules are now deprecated and reduce clutter in non-deprecated module directories. | ||||
* | fixes #2874 | Araq | 2015-07-01 | 1 | -37/+56 |
| | |||||
* | lib/pure/p-t - Dropped 'T' from types | pdw | 2015-06-04 | 1 | -1/+1 |
| | |||||
* | parseopt is not deprecated anymore | Araq | 2015-03-03 | 1 | -3/+6 |
| | |||||
* | Happy new year! | Guillaume Gelin | 2015-01-06 | 1 | -1/+1 |
| | |||||
* | updated nimgrep tool | Araq | 2014-09-10 | 1 | -1/+1 |
| | |||||
* | Nimrod renamed to Nim | Araq | 2014-08-28 | 1 | -1/+1 |
| | |||||
* | several modules changed | Araq | 2014-08-28 | 1 | -1/+1 |
| | |||||
* | big rename | Araq | 2014-08-27 | 1 | -15/+14 |
| | |||||
* | renamefest | Araq | 2014-08-23 | 1 | -1/+1 |
| | |||||
* | distinguish between 'defined' and 'declared' | Araq | 2014-08-11 | 1 | -2/+2 |
| | |||||
* | Adds parseopt2 module to documentation index. | Grzegorz Adam Hankiewicz | 2014-01-15 | 1 | -2/+2 |
| | |||||
* | case consistency: cs:partial bootstraps on windows | Araq | 2013-12-29 | 1 | -1/+1 |
| | |||||
* | case consistency: next steps | Araq | 2013-12-29 | 1 | -1/+1 |
| | |||||
* | case consistency part 4 | Araq | 2013-12-27 | 1 | -3/+3 |
| | |||||
* | Make old parseopt as deprecated. | Michał Zieliński | 2013-12-10 | 1 | -1/+4 |
| | |||||
* | Removes executable bit for text files. | Grzegorz Adam Hankiewicz | 2013-03-16 | 1 | -0/+0 |
| | |||||
* | year 2012 for most copyright headers | Araq | 2012-01-02 | 1 | -1/+1 |
| | |||||
* | renamed optional to discardable | Araq | 2011-09-24 | 1 | -14/+14 |
| | |||||
* | beginning of a taint mode; type system enhancements | Araq | 2011-09-24 | 1 | -1/+1 |
| | |||||
* | bugfix: proper cache for generic instantiations | Araq | 2011-07-21 | 1 | -9/+1 |
| | |||||
* | deprecated system.copy: use system.substr instead | Araq | 2011-05-14 | 1 | -1/+1 |
| | |||||
* | inlining of the write barrier for dlls | Andreas Rumpf | 2010-08-08 | 1 | -44/+54 |
| | |||||
* | fixed pango/pangoutils new wrappers | Andreas Rumpf | 2010-02-26 | 1 | -0/+0 |
| | |||||
* | continued work on html/xmlparser | rumpf_a@web.de | 2010-02-14 | 1 | -0/+0 |
| | |||||
* | implemented multi methods | Andreas Rumpf | 2009-09-23 | 1 | -19/+19 |
| | |||||
* | added tools and web dirs | Andreas Rumpf | 2009-09-15 | 1 | -0/+0 |
| | |||||
* | version0.7.10 | Andreas Rumpf | 2009-06-08 | 1 | -0/+152 |