X-Git-Url: https://git.madduck.net/code/myrepos.git/blobdiff_plain/9a651e120c51251ab679934557923114ac141ed2..02d332602145b6e3e3e28dbfd5078fcf04c27446:/mr diff --git a/mr b/mr index d7905b6..e735b67 100755 --- a/mr +++ b/mr @@ -90,6 +90,9 @@ Register an existing repository in the mrconfig file. By default, the repository in the current directory is registered, or you can specify a directory to register. +By default it registers it to the ~/.mrconfig file. To make it write to a +different file, use the -c option. + =item config Adds, modifies, removes, or prints a value from the mrconfig file. The next @@ -258,7 +261,7 @@ my %alias; Getopt::Long::Configure("no_permute"); my $result=GetOptions( "d|directory=s" => sub { $directory=abs_path($_[1]) }, - "c|config=s" => \$ENV{MR_CONFIG}, + "c|config=s" => sub { $ENV{MR_CONFIG}=abs_path($_[1]) }, "v|verbose" => \$verbose, "s|stats" => \$stats, );