summaryrefslogtreecommitdiff
path: root/bin/envstore
diff options
context:
space:
mode:
Diffstat (limited to 'bin/envstore')
-rwxr-xr-xbin/envstore40
1 files changed, 40 insertions, 0 deletions
diff --git a/bin/envstore b/bin/envstore
index 289777b..5c27b22 100755
--- a/bin/envstore
+++ b/bin/envstore
@@ -92,3 +92,43 @@ if ($action eq 'save') {
print STDERR "Usage: envstore <save|eval|show|rm|clear> [args]\n";
exit(1);
}
+__END__
+
+=head1 NAME
+
+envstore - save and restore environment variables
+
+=head1 SYNOPSIS
+
+B<envstore> I<command> [ I<arguments> ]
+
+=head1 DESCRIPTION
+
+envstore can safe and restore environment variables, thus transferring them
+between different shells.
+
+I<command> must be one of
+
+=over
+
+=item B<clear>
+
+Forget all stored variables
+
+=item B<eval>
+
+Produce shell code for evaluation, restoring all saved variables
+
+=item B<save> I<variable>[=I<value>]
+
+Save I<variable> either with it's current shell value or with I<value>
+
+=item B<show>
+
+List saved variables in better readable format
+
+=item B<rm> I<variable>
+
+Remove I<variable> from store
+
+=back