Skip to content

Commit

Permalink
Update xflags to 0.3
Browse files Browse the repository at this point in the history
Only used in non-published crates, this minorly changed some syntax.
  • Loading branch information
cmyr committed Jul 19, 2023
1 parent ce01aa6 commit 525132f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion font-codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ proc-macro2 = { version = "1.0", features = ["span-locations"]}
quote = "1.0"
toml = "0.7.5"
serde = {version = "1.0", features = ["derive"] }
xflags = "0.2.4"
xflags = "0.3.0"
log = "0.4"
env_logger = "0.10.0"
rayon = "1.5.3"
Expand Down
9 changes: 5 additions & 4 deletions font-codegen/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,16 @@ mod flags {
xflags::xflags! {
/// Generate font table representations
cmd args {
cmd file
cmd file {
/// Code to generate; either 'parse' or 'compile'.
required mode: Mode
/// Path to the input file
required path: PathBuf
{}
default cmd plan
}
default cmd plan {
/// plan path
required path: PathBuf {}
required path: PathBuf
}
}
}
}
2 changes: 1 addition & 1 deletion otexplorer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ publish = false


[dependencies]
xflags = "0.2.4"
xflags = "0.3.0"
read-fonts = { path = "../read-fonts",version = "0.8.0" }
font-types = { path = "../font-types",version = "0.3.3" }
ansi_term = "0.12.1"
Expand Down
16 changes: 7 additions & 9 deletions otexplorer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,13 @@ mod flags {

xflags::xflags! {
/// Generate font table representations
cmd args
cmd args {
required input: PathBuf
{
optional -i, --index index: u32
optional -l, --list
optional -q, --query query: Query
optional -t, --tables include: String
optional -x, --exclude exclude: String
}

optional -i, --index index: u32
optional -l, --list
optional -q, --query query: Query
optional -t, --tables include: String
optional -x, --exclude exclude: String
}
}
}

0 comments on commit 525132f

Please sign in to comment.