Compare commits

...

4 Commits
v0.1.2 ... main

Author SHA1 Message Date
Chris Watson 89516cc699
Merge pull request #2 from taupiqueur/fix-typo
Fix typo
2023-01-29 16:39:15 -07:00
Mathieu Ablasou 13aa2b3bae Fix typo 2023-01-29 17:51:24 +01:00
Chris Watson e6f7413674 fix for boolean flag at end 2023-01-28 14:37:38 -07:00
Chris Watson ef7a9f76dc add --error-trace to specs 2023-01-27 22:50:04 -07:00
3 changed files with 4 additions and 3 deletions

View File

@ -21,4 +21,4 @@ jobs:
- name: Install dependencies
run: shards install
- name: Run tests
run: crystal spec
run: crystal spec --error-trace

View File

@ -67,7 +67,7 @@ which implements `from_arg` as a proxy for that type.
## Converters
Converers are simply modules which have a `self.from_arg` method which takes
Converters are simply modules which have a `self.from_arg` method which takes
a value string, and returns the converted value. For Example:
```

View File

@ -67,7 +67,8 @@ module ArgParser
arg = %args.shift
next unless key = parse_key(arg)
value = %args.shift rescue nil
# TODO: Find a different way to handle this
value = %args.shift rescue "true"
if value && parse_key(value)
%args.unshift(value)
value = "true"