message: add hidden option to specify command name
diff: @@ -83,6 +83,9 @@ struct Run {
  #[structopt(long = "em-symbol-map", parse(from_os_str))]
  em_symbol_map: Option<PathBuf>,
  + #[structopt(long = "command-name", hidden = true)]
  + command_name: Option<String>,
  +
  /// Application arguments
  #[structopt(name = "--", raw(multiple = "true"))]
  args: Vec<String>,
  @@ -300,7 +303,11 @@ fn execute_wasm(options: &Run) -> Result<(), String> {
  (
  InstanceABI::WASI,
  wasmer_wasi::generate_import_object(
  + if let Some(cn) = &options.command_name {
  + [cn.clone()]
  + } else {
  [options.path.to_str().unwrap().to_owned()]
  + }
  .iter()
  .chain(options.args.iter())
  .cloned()
  @@ -329,7 +336,11 @@ fn execute_wasm(options: &Run) -> Result<(), String> {
  &module,
  &mut instance,
  abi,
  - options.path.to_str().unwrap(),
  + if let Some(cn) = &options.command_name {
  + cn
  + } else {
  + options.path.to_str().unwrap()
  + },
  options.args.iter().map(|arg| arg.as_str()).collect(),
  )
  .map_err(|e| format!("{:?}", e))?;
  