Skip to content

Commit

Permalink
always autounmount
Browse files Browse the repository at this point in the history
  • Loading branch information
mgree committed Jun 24, 2021
1 parent 4aff907 commit a02d674
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ fn main() {
.long("debug")
.short("d")
)
.arg(
Arg::with_name("AUTOUNMOUNT")
.help("Automatically unmount the filesystem when the mounting process exits")
.long("autounmount"),
)
.arg(
Arg::with_name("UID")
.help("Sets the user id of the generated filesystem (defaults to current effective user id)")
Expand Down Expand Up @@ -90,7 +85,7 @@ fn main() {
)
.arg(
Arg::with_name("NOOUTPUT")
.help("Disables output")
.help("Disables output of filesystem (normally on stdout)")
.long("no-output")
.overrides_with("OUTPUT")
)
Expand Down Expand Up @@ -397,10 +392,10 @@ fn main() {
// DONE PARSING
////////////////////////////////////////////////////////////////////////////

let mut options = vec![MountOption::FSName(format!("{}", config.input))];
if args.is_present("AUTOUNMOUNT") {
options.push(MountOption::AutoUnmount);
}
let mut options = vec![
MountOption::AutoUnmount,
MountOption::FSName(format!("{}", config.input)),
];
if config.read_only {
options.push(MountOption::RO);
}
Expand Down

0 comments on commit a02d674

Please sign in to comment.