Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set correct datagen CLI version #3127

Merged
merged 5 commits into from
Feb 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions provider/datagen/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions provider/datagen/src/bin/datagen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
// called LICENSE at the top level of the ICU4X source tree
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).

use clap::{App, Arg, ArgGroup};
use clap::{crate_authors, crate_version, App, Arg, ArgGroup};
use eyre::WrapErr;
use icu_datagen::prelude::*;
use simple_logger::SimpleLogger;
use std::path::PathBuf;

fn main() -> eyre::Result<()> {
let matches = App::new("ICU4X Data Exporter")
.version("0.0.1")
.author("The ICU4X Project Developers")
.about("Export CLDR JSON into the ICU4X data schema")
let matches = App::new("icu4x-datagen")
.version(crate_version!())
.author(crate_authors!())
.about(concat!("Learn more at: https://docs.rs/icu_datagen/", crate_version!()))
.arg(
Arg::with_name("VERBOSE")
.short("v")
Expand Down
4 changes: 3 additions & 1 deletion provider/datagen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
//! Data files can be generated either programmatically (i.e. in `build.rs`), or through a
//! command-line utility.
//!
//!
//! Also see our [datagen tutorial](https://github.com/unicode-org/icu4x/blob/main/docs/tutorials/data_management.md)
//!
//! # Examples
//!
//! ## `build.rs`
Expand Down Expand Up @@ -44,7 +47,6 @@
//! > --format blob \
//! > --out data.postcard
//! ```

//! More details can be found by running `--help`.

#![cfg_attr(
Expand Down