|
@@ -1,3 +1,20 @@
|
|
|
+use std::path::PathBuf;
|
|
|
+use structopt::StructOpt;
|
|
|
+
|
|
|
+#[derive(Debug, StructOpt)]
|
|
|
+#[structopt(name = "Localize", about = "Localize a static library into a single object archive")]
|
|
|
+struct LocalizeArgs
|
|
|
+{
|
|
|
+ /// list of file to merge
|
|
|
+ #[structopt(name = "FILE LIST", short = "i", long = "inputs")]
|
|
|
+ input_files: Vec<PathBuf>,
|
|
|
+
|
|
|
+ /// filename of the final library archive
|
|
|
+ #[structopt(name = "OUT FILE", short = "o", long = "output")]
|
|
|
+ output_file: PathBuf,
|
|
|
+}
|
|
|
+
|
|
|
fn main() {
|
|
|
- println!("Hello, world!");
|
|
|
+ let opt = LocalizeArgs::from_args();
|
|
|
+ println!("{:?}", opt);
|
|
|
}
|