#[cfg(target_os = "linux")] use std::path::PathBuf; use bpaf::*; #[derive(Bpaf, Clone, Debug)] pub enum SubCommand { #[cfg(target_os = "linux")] Fuse { #[bpaf(argument("MOUNT_POINT"))] mount_point: PathBuf, }, Ls { #[bpaf(argument("PATH"))] path: String, }, } #[derive(Bpaf, Clone, Debug)] #[bpaf(options, version)] pub struct Opts { /// handle or DID #[bpaf(long, short, argument("IDENTIFIER"))] pub identifier: String, #[bpaf(external(sub_command))] pub cmd: SubCommand, }