aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--src/args.nim8
2 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 04ce4cb..b224ff2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
VERSION = 0.14
-COPYRIGHT = 2018-2019 kitsunyan
+COPYRIGHT = 2018-2020 kitsunyan
DIST_MODE = false
MAN_PAGES = \
diff --git a/src/args.nim b/src/args.nim
index ba734c1..c0ea8f4 100644
--- a/src/args.nim
+++ b/src/args.nim
@@ -23,11 +23,11 @@ type
]
iterator readLines(): string =
- try:
- while true:
+ while true:
+ try:
yield readLine(stdin)
- except:
- discard
+ except:
+ break
iterator splitSingle(valueFull: string, optionsWithParameter: HashSet[OptionKey],
next: Option[string]): tuple[key: string, value: Option[string], consumedNext: bool] =