Build a [`CommandBuilder`] that re-execs the current binary into this internal subcommand. Each variant owns its own arg layout.
(&self)
| 143 | /// Build a [`CommandBuilder`] that re-execs the current binary into this |
| 144 | /// internal subcommand. Each variant owns its own arg layout. |
| 145 | pub fn get_command_builder(&self) -> Result<CommandBuilder> { |
| 146 | Ok(self.command_builder_for(self_exe()?)) |
| 147 | } |
| 148 | |
| 149 | /// Same as [`Self::get_command_builder`], re-executing `program` instead. |
| 150 | pub fn command_builder_for(&self, program: PathBuf) -> CommandBuilder { |
no test coverage detected