Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed issues when using `std/parseopt` in miscripts with cmdline = "" (#23785) | Gianmarco | 2024-07-02 | 1 | -3/+15 |
| | | | | | | | Using initOptParser with an empty cmdline (so that it gets the cmdline from the command line) in nimscripts does not yield the expected results. Fixes #23774. | ||||
* | complete std prefixes for stdlib (#22887) | ringabout | 2023-10-30 | 1 | -1/+1 |
| | | | | follow up https://github.com/nim-lang/Nim/pull/22851 follow up https://github.com/nim-lang/Nim/pull/22873 | ||||
* | Markdown code blocks migration part 8 (#22478) | Andrey Makarov | 2023-08-15 | 1 | -10/+15 |
| | |||||
* | replace `doAssert false` with `raiseAssert` in lib, which works better with ↵ | ringabout | 2023-08-11 | 1 | -1/+1 |
| | | | | strictdefs (#22458) | ||||
* | minor parseopt.nim improvements (#21256) | Andreas Rumpf | 2023-01-18 | 1 | -39/+33 |
| | | | | | | | * minor parseopt.nim improvements * attempt to make CI happy Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com> | ||||
* | parseopt.nim documentation clarity - default values & cmdEnd in getopt (#21047) | Russell Brinson | 2023-01-11 | 1 | -2/+27 |
| | | | | | | parseopt.nim documentation clarity Added example for default values to cmd line parameters. Additionally, added lines in getopt documentation about case switching still requiring the `cmdEnd` kind. Hopefully this clears up any vagueness for those following along in the example but omitting the `cmdEnd` in the case because the documentation said it wasn't needed. | ||||
* | Refactor initOptParser (#19656) | Nan Xiao | 2022-09-27 | 1 | -22/+5 |
| | | | Co-authored-by: flywind <xzsflywind@gmail.com> | ||||
* | No need to export pos from OptParser (#19688) | Nan Xiao | 2022-04-06 | 1 | -1/+1 |
| | | | Co-authored-by: flywind <xzsflywind@gmail.com> | ||||
* | fix 19655 - fixing more url fragments (#19669) | Nan Xiao | 2022-04-01 | 1 | -2/+2 |
| | |||||
* | fix 19655 - fixing url fragment (#19667) | rockcavera | 2022-04-01 | 1 | -1/+1 |
| | |||||
* | Replace double backticks with single backticks - Part 4 out of ~7 (#17216) | Danil Yarantsev | 2021-03-01 | 1 | -32/+32 |
| | |||||
* | Change stdlib imports to use std prefix in most examples (#17202) | Danil Yarantsev | 2021-02-28 | 1 | -2/+2 |
| | |||||
* | Make parseopt available on all backends (#17009) | hlaaftana | 2021-02-13 | 1 | -137/+148 |
| | | | | | | | | | * Make parseopt available on all backends * fix spaces * fix getopt and update prelude * no crazy unnecessary version checks, use doAssert | ||||
* | fix some warnings (#16952) | flywind | 2021-02-08 | 1 | -9/+9 |
| | |||||
* | Deprecate TaintedString (#15423) | Juan Carlos | 2021-01-15 | 1 | -20/+20 |
| | | | | Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com> | ||||
* | fix #13086 (#14987) | flywind | 2020-07-15 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | * fix #6608 * minor * fix * clean tests * make testamnet happy * again * minor * fix #13086 | ||||
* | Fixes ambiguity errors when evaluating Nimble files. (#12674) [backport] | Dominik Picheta | 2019-11-18 | 1 | -6/+6 |
| | | | | | | | | When trying to evaluate a Nimble file which imports a Nim module I was getting the following errors for some reason: ``` /Users/dom/projects/nim/lib/pure/parseopt.nim(229, 46) Error: ambiguous call; both system.paramCount() [declared in /Users/dom/projects/nim/lib/system/nimscript.nim(65, 6)] and os.paramCount() [declared in /Users/dom/projects/nim/lib/pure/os.nim(2613, 8)] match for: () ``` | ||||
* | remove unused imports | narimiran | 2019-11-06 | 1 | -2/+1 |
| | |||||
* | [backport] run nimpretty on parsers | narimiran | 2019-09-30 | 1 | -15/+18 |
| | |||||
* | fixes #8405: -d:useNimRtl now works even when {.rtl.} procs are used at ↵ | Timothee Cour | 2019-07-03 | 1 | -36/+35 |
| | | | | compile time; CTFFI now works with {dynlib} (#11635) | ||||
* | nimpretty: bugfix [bugfix] | Araq | 2019-06-28 | 1 | -5/+5 |
| | |||||
* | parseopt fix (#11363) [backport] | Jasper Jenkins | 2019-06-01 | 1 | -1/+2 |
| | |||||
* | fixes #11294 | Araq | 2019-05-24 | 1 | -3/+4 |
| | |||||
* | better docs: parseopt (#10398) | Jjp137 | 2019-01-22 | 1 | -49/+266 |
| | |||||
* | fix #9842 #9951: `nim -r` and parseopt.cmdLineRest are now correct | Timothee Cour | 2019-01-14 | 1 | -23/+1 |
| | |||||
* | fixes #9120 | Araq | 2018-12-16 | 1 | -1/+1 |
| | |||||
* | added parseopt.remainingArgs; refs #9951 | Araq | 2018-12-14 | 1 | -0/+5 |
| | |||||
* | parseopt: remove confusing dead code | Andreas Rumpf | 2018-11-09 | 1 | -10/+0 |
| | |||||
* | fixes #9619 | Andreas Rumpf | 2018-11-09 | 1 | -3/+8 |
| | |||||
* | fixes a parseopt regression (#8820) | Andreas Rumpf | 2018-08-30 | 1 | -2/+5 |
| | |||||
* | make parseopt work with DLLs on Unix | Araq | 2018-08-28 | 1 | -7/+8 |
| | |||||
* | make parsopt compile under --taintMode:on | Araq | 2018-08-28 | 1 | -6/+6 |
| | |||||
* | parseopt: keep the seq of arguments as given; fixes various command line ↵ | Araq | 2018-08-28 | 1 | -34/+75 |
| | | | | parsing edge cases; refs #6818 | ||||
* | 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 |
| |