Commit Graph

6 Commits

Author SHA1 Message Date
Erick Tryzelaar
c728c85810 Fix quoting in errors when parsing arguments
This closes quotes in error messages when parsing arguments.

Test: Added tests to make sure the error message when parsing arguments is
as expected, as well as added a test to check parsing options.

Closes #52
2020-10-11 09:27:02 -07:00
Eli Lipsitz
9022148be9 Add support for option delimiter "--"
Following the Fuchsia CLI Tool Rubric
(https://fuchsia.dev/fuchsia-src/concepts/api/cli#option_delimiter),
this adds support for "--", which denotes the end of the options list.
All arguments that come after this point will be treated as positional,
even if they begin with "-".

Closes #58. Closes #59.
2020-10-06 16:56:17 -07:00
Eli Lipsitz
2517d3fdb2 Run rustfmt to fix a pre-existing formatting issue 2020-10-06 16:56:17 -07:00
Craig Pastro
ee6521e046 Add missing newline to error message
If both positional and optional args are present the error message was missing a newline.
2020-08-12 09:37:30 +09:00
Atul Bhosale
7515ada5de
Format code using 'cargo fmt' 2020-02-06 23:16:43 +05:30
Benjamin Brittain
c752b5f504 Migrate code into into stand-alone repo
Adds Cargo.toml files
2020-01-30 16:16:19 -05:00