cli: add documentation on create-{exe,obj}

This commit is contained in:
Manos Pitsidianakis
2022-08-03 14:13:54 +03:00
parent 1ad352610a
commit 951e09634b
3 changed files with 47 additions and 25 deletions

View File

@@ -34,7 +34,12 @@ pub struct CreateExe {
target_triple: Option<Triple>,
/// Object format options
#[structopt(name = "OBJECT_FORMAT", long = "object-format")]
///
/// This flag accepts two options: `symbols` or `serialized`.
/// - (default) `symbols` creates an
/// executable where all functions and metadata of the module are regular object symbols
/// - `serialized` creates an executable where the module is zero-copy serialized as raw data
#[structopt(name = "OBJECT_FORMAT", long = "object-format", verbatim_doc_comment)]
object_format: Option<ObjectFormat>,
#[structopt(short = "m", multiple = true, number_of_values = 1)]
cpu_features: Vec<CpuFeature>,