Skip to content
This repository was archived by the owner on Jan 9, 2020. It is now read-only.

Commit da3c8ef

Browse files
author
Vishvananda Ishaya Abrams
committed
add placeholder for console socket
1 parent 090635e commit da3c8ef

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/main.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,12 @@ fn run() -> Result<()> {
309309
.short("c")
310310
.takes_value(true),
311311
)
312+
.arg(
313+
Arg::with_name("console-socket")
314+
.help("console socket (unsupported)")
315+
.long("console-socket")
316+
.takes_value(true),
317+
)
312318
.about("Create a container (to be started later)"),
313319
)
314320
.subcommand(
@@ -515,6 +521,10 @@ fn cmd_create(id: &str, state_dir: &str, matches: &ArgMatches) -> Result<()> {
515521
chdir(&*dir).chain_err(
516522
|| format!("failed to chdir to {}", &dir),
517523
)?;
524+
let csocket = matches.value_of("console-socket").unwrap_or_default();
525+
if csocket != "" {
526+
bail!("Console socket unsupported. Try running without -t");
527+
}
518528

519529
let console = matches.value_of("c").unwrap_or_default();
520530
if console != "" {

0 commit comments

Comments
 (0)