Skip to content

Commit

Permalink
fix: remove unused server subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Feb 7, 2021
1 parent 983219f commit 148c95e
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions src/bin/visual.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async fn main() -> std::io::Result<()> {
Arg::with_name("name")
.short("n")
.long("name")
.value_name("PROJECT name")
.value_name("project name")
.help("project name")
.takes_value(true),
)
Expand All @@ -34,17 +34,12 @@ async fn main() -> std::io::Result<()> {
.takes_value(true),
),
)
.subcommand(
App::new("server")
.about("server")
.version(VERSION)
.author("Inherd Group")
.arg(
Arg::with_name("port")
.short("p")
.help("http server port")
.takes_value(true),
),
.arg(
Arg::with_name("port")
.short("p")
.long("port")
.help("http server port")
.takes_value(true),
)
.get_matches();

Expand All @@ -65,7 +60,6 @@ async fn main() -> std::io::Result<()> {

// todo: add load config
let _config = CocoConfig::default();

let port = match matches.value_of("port") {
Some(input) => input,
None => "8000",
Expand Down

0 comments on commit 148c95e

Please sign in to comment.