Commits

Diab Jerius  committed 1c605fc

add --no-config option to expose new functionality to not read any configuration files

  • Participants
  • Parent commits e55d915

Comments (0)

Files changed (1)

File src/wikiup.pl.in

 
 sub config {
 
-  my $config = WikiUp::Config->new( $ARGV{config}, '.wikiuprc'  );
+  my $config =
+    WikiUp::Config->new( $ARGV{'no-config'}
+			 ? ()
+			 : ( $ARGV{config}, '.wikiuprc' )
+		       );
 
   $config->set_profile( $ARGV{profile} ) if defined $ARGV{profile};
 
 			  attrs|a=s
 			  comment|c=s
 			  config|f=s
+			  no-config
 			  dryrun|n
 			  help
 			  insecure
 
 Use an alternative configuration file.
 
+=item --no-config
+
+Don't read any configuration files.
+
 =item --insecure
 
 Do I<not> verify host certificates when connecting to hosts using SSL.