support host name resolution for command line args

This commit is contained in:
figsoda 2021-02-17 11:02:17 -05:00
parent 730d179fe6
commit 5e8a7ad4b6

View file

@ -1,7 +1,7 @@
use clap::{AppSettings, Clap};
use tui::widgets::ListState;
use std::{net::SocketAddr, path::PathBuf};
use std::path::PathBuf;
use crate::mpd::{Status, Track};
@ -33,7 +33,7 @@ pub struct Opts {
/// Specify the address of the mpd server
#[clap(long, value_name = "address")]
pub address: Option<SocketAddr>,
pub address: Option<String>,
/// Specify the config file
#[clap(short, long, value_name = "file")]