Override font used on command line

Add an option -f or --font to the cssh command to allow for overriding the terminal_font setting from the config file at runtime.
This commit is contained in:
Duncan Ferguson 2010-06-18 23:32:27 +01:00
parent 9834440176
commit f379208b32
4 changed files with 11 additions and 2 deletions

View file

@ -86,6 +86,7 @@ my @options_spec = (
'term-args|t=s',
'title|T=s',
'output-config|u',
'font|f=s',
);
my %options;
my %config;
@ -373,6 +374,9 @@ sub check_config() {
}
$config{internal_previous_state} = ""; # set to default
# option font overrides config file font setting
config{terminal_font} = $options{font} if ( $options{font} );
get_font_size();
$config{extra_cluster_file} =~ s/\s+//g;