Index: trunk/DataStore/scripts/dsget
===================================================================
--- trunk/DataStore/scripts/dsget	(revision 15290)
+++ trunk/DataStore/scripts/dsget	(revision 16159)
@@ -1,7 +1,7 @@
 #!/usr/bin/env perl
 
-# Copyright (C) 2006  Joshua Hoblitt
+# Copyright (C) 2006-2008  Joshua Hoblitt
 #
-# $Id: dsget,v 1.8 2007-10-12 01:25:18 jhoblitt Exp $
+# $Id: dsget,v 1.9 2008-01-19 03:22:47 jhoblitt Exp $
 
 use strict;
@@ -9,5 +9,5 @@
 
 use vars qw( $VERSION );
-$VERSION = '0.01';
+$VERSION = '0.02';
 
 use DataStore;
@@ -19,5 +19,5 @@
 use Pod::Usage qw( pod2usage );
 
-my ($uri, $bytes, $md5, $nebulous, $filename, $node, $server);
+my ($uri, $bytes, $md5, $nebulous, $filename, $volume, $server);
 
 $server = $ENV{'NEB_SERVER'} unless $server;
@@ -26,6 +26,6 @@
     'uri|u=s'       => \$uri,
     'bytes|m=s'     => \$bytes,
-    'nebulous|n'  => \$nebulous,
-    'node|n=s'      => \$node,
+    'nebulous|n'    => \$nebulous,
+    'volume|v=s'    => \$volume,
     'server|s=s'    => \$server,
     'md5|m=s'       => \$md5,
@@ -38,4 +38,9 @@
     -exitval => 3,
 ) unless defined $uri and defined $filename;
+
+# --volume implies --nebulous
+if ($volume) {
+    $nebulous |=1;
+}
 
 my %p = (
@@ -100,5 +105,5 @@
         unless defined $neb;
 
-    my $fh = $neb->open_create( $filename, $node )
+    my $fh = $neb->open_create( $filename, $volume )
         or die "Nebulous can't create key $filename";
     open(my $src_fh, $tmpfilename) or die "can't open file $tmpfilename: $!";
@@ -128,4 +133,5 @@
 
     dsget --uri <uri> --filename <filename> [--bytes <nbytes>] [--md5 <hex>]
+        [--nebulous] [--volume <volume>]
 
 =head1 DESCRIPTION
@@ -155,4 +161,17 @@
 Optional, the md5check is skipped if no value is specified.
 
+=item * --nebulous|-n
+
+Flag to enable C<nebulous> support.  When set C<--filename> is used as the
+Nebulous key.
+
+Optional.
+
+=item * --volume|-v <volume>
+
+The volume ID to request the first Nebulous instance be stored on.
+
+Optional, implies C<--nebulous>
+
 =back
 
@@ -171,5 +190,5 @@
 =head1 COPYRIGHT
 
-Copyright (C) 2006  Joshua Hoblitt.  All rights reserved.
+Copyright (C) 2006-2008  Joshua Hoblitt.  All rights reserved.
 
 This program is free software; you can redistribute it and/or modify it under
