Commit graph

35 commits

Author SHA1 Message Date
Zach Dziura
831f65b27e Merge pull request #4 from joelself/master
Updated `env::args().collect()` to output a Vec
2016-05-17 23:52:02 -04:00
Joel
3563377a5e Updated env::args().collect() to output a Vec
It seems `collect` defaults to collecting into an array which doesn't work with a collection of `String`s because `String`s vary in size and their size cannot be known at compile time. To work around this I collect the args into a `Vec` instead and pass that in. Also I think the first call to `matches` was missing an `&` on the `args` parameter.
2016-05-17 11:39:24 -06:00
Zach Dziura
426c0c9ef7 Fixed formatting and spelling errors in README 2015-06-30 01:36:53 +00:00
Zach Dziura
1c75b5354e Version 1.0 2015-06-29 07:55:53 -04:00
Zach Dziura
14b5cad8c1 Finished test cases for matches 2015-06-24 17:24:06 -04:00
Zach Dziura
e3d1176fa6 Fixed broken tests 2015-06-24 17:02:16 -04:00
Zach Dziura
cc6f53979a Fixing some of the failing test cases
Still more to finish, however...
2015-06-24 16:04:50 -04:00
Zach Dziura
75c277db3a Fixed usage display formatting 2015-06-23 11:09:56 -04:00
Zach Dziura
77f65c79c2 Fixed bug where the correct usage format wasn't being used.
TODO: Fix a spacing issue with the usage display.
2015-06-23 12:00:50 +00:00
Zach Dziura
3c9dae504b Matches is now a Type Alias, rather than its own struct
Since the original Matches structure was nothing more than a wrapper around a HashMap<String,
String>, the code has been updated to simply be a type alias to that type. Makes things easier.
2015-06-23 03:31:02 +00:00
Zach Dziura
632850c58c Finally (FINALLY!) finished the Token integration 2015-06-16 14:28:14 -04:00
Zach Dziura
ee56d7c081 Added extra Token methods 2015-06-11 16:59:41 -04:00
Zach Dziura
87675e409a Creating test cases for each module 2015-06-10 18:14:11 +00:00
Zach Dziura
0bab8dc9ca Finished the Tokens refactor
Now I just need to test the damn thing...
2015-06-09 16:50:16 -04:00
Zach Dziura
d1de4d9431 Tokens are now in Opts 2015-06-08 16:26:12 -04:00
Zach Dziura
c0d0a99c25 Begin bringing Tokens into Opt
I've made an executive decision: Opt will be in charge of displaying the
usage (help) information for the program. That will involve bringing the
functionality delivered by Token into Opt. I've begun that process now.
2015-06-04 15:37:59 -04:00
Zach Dziura
346c17c517 Actually finished lexer integration
There were some previous bugs in the original lexer implementation that had to
be fixed, along with some extraneous code that had to be removed. Luckily,
that's all been taken care of!
2015-05-28 21:04:00 +00:00
Zach Dziura
2ba09a17b6 Fixed a few outstanding integration errors 2015-05-28 09:19:19 -04:00
Zach Dziura
ad4a8ee4b3 Integrated the lexer into the existing workflow
Next up, generate the help-generator functions!
2015-05-27 15:49:50 -04:00
Zach Dziura
97a0d856b2 Finished lexer stub
Still need to test...
2015-05-27 14:21:03 -04:00
Zach Dziura
2423cd7d19 Implemented lexer stub 2015-05-26 15:53:47 -04:00
Zach Dziura
be28b0307c Continuous Integration now tests on all 3 rustc channels 2015-05-25 11:48:01 -04:00
Zach Dziura
297aaa0ad3 Updated examples with better example
Now we'll encourage users to create an actual vector, instead of an array slice.
It's better form to do so, anyways.
2015-05-25 11:14:13 -04:00
Zach Dziura
29077d64d6 Merge pull request #1 from filsmick/master
The code example in README.md used `has_match`, which doesn't exist, instead of `has_arg`
2015-05-23 14:49:28 -04:00
filsmick
fb603d35ab Code example used has_match, which doesn't exist, instead of has_arg 2015-05-23 10:45:57 +02:00
Zach Dziura
1b71c6c876 Updated "Installation" section with correct version 2015-04-30 18:06:49 +00:00
Zach Dziura
f8809979ff Version 0.2.0 2015-04-30 15:21:00 +00:00
Zach Dziura
25327fa441 Now returns an error when not all program args are passed via command-line
There was a lot of stuff added here. The most important addition is
how Pirate now returns a MissingArgument kinded error if a required
program argument isn't passed to the program.
2015-04-30 15:14:34 +00:00
Zach Dziura
da684ab0f7 Updated main lib file to use new Error struct 2015-04-28 18:40:22 +00:00
Zach Dziura
78a56f27f8 Implemented new Error struct
This custom Error struct will replace the existing ErrorKind enum
for Pirate errors (though ErrorKind will remain in use)
2015-04-28 18:34:17 +00:00
Zach Dziura
11a9fc97f7 Removed unnecessary keywords from Cargo.toml 2015-04-28 15:20:10 +00:00
Zach Dziura
e5924be826 Updated Travis CI build image 2015-04-28 15:00:00 +00:00
Zach Dziura
8aca4b42ac Added Travis CI build status image to README 2015-04-28 14:56:00 +00:00
Zach Dziura
7ef5a2ceb8 Adding Travis CI support 2015-04-28 14:54:30 +00:00
Zach Dziura
3aeaf8467e Version 0.1.0 2015-04-28 01:10:37 -04:00