chrissimpkins / commandlines-rust Goto Github PK
View Code? Open in Web Editor NEWA command line argument parsing library for Rust
Home Page: https://docs.rs/commandlines
License: MIT License
A command line argument parsing library for Rust
Home Page: https://docs.rs/commandlines
License: MIT License
This appears to be a Travis CI Rust installation problem. Reported here: https://travis-ci.community/t/macos-rust-beta-build-failures/803 and await response.
Add support for automation of a check that confirm that the user included only options that are supported in the application.
Grammar struct used to define application syntax. Data in grammar used for validations. Definition of Grammar is optional and only used when CLI application author wants to use commandlines library for validation of user command entry.
Command::contains_all_options()
method
Command::is_version()
method as a concise test for -v
or --version
options.
Support automated testing for --usage
switch with Command::is_usage()
method
Add a Command.contains_sequence()
method that tests argument string + position in order to support command suite style applications.
e.g.,
For the command:
$ tester [subcmd] [subsubcmd] [..args]
provide a test that allows library user to do the following:
let c = Command::new();
if c.contains_sequence(vec![“filter”, “help”]) {
// received help request for filter subcommand
}
Command::is_help()
as concise test for -h
or --help
options
Command::contains_one_option()
In the vein of getopt
's optind
. Will represent the index of the last parsed option in the command sequence to permit identification of subsequent arguments for additional parsing by the library/library user.
POSIX defined options with single hyphen and multiple characters where each character represents a different option switch
e.g.:
-abc
where option indicates -a -b -c
std::path::Path
from String
This converts to correct terms for the Unicode code points that are used for the idiom
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.