[tbb-commits] [rbm/master] Bug 24180: Make 'rbm fetch' accept options
gk at torproject.org
gk at torproject.org
Mon Nov 27 09:45:07 UTC 2017
commit 6406e0684a379d13188886f747ed57060925efaf
Author: Nicolas Vigier <boklm at torproject.org>
Date: Wed Nov 8 14:32:04 2017 +0100
Bug 24180: Make 'rbm fetch' accept options
---
doc/rbm-fetch.asc | 7 ++++++-
rbm | 3 ++-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/doc/rbm-fetch.asc b/doc/rbm-fetch.asc
index 17a41e6..f0da55e 100644
--- a/doc/rbm-fetch.asc
+++ b/doc/rbm-fetch.asc
@@ -9,7 +9,7 @@ rbm-fetch - Fetch commits from remote git or mercurial repository
SYNOPSIS
--------
[verse]
-'rbm fetch' [project]
+'rbm fetch' [options] [project]
DESCRIPTION
-----------
@@ -23,6 +23,11 @@ fetched, so there is no need to use this command.
Alternatively, the '--fetch' option can be used on other commands.
+COMMAND LINE OPTIONS
+--------------------
+
+See link:rbm_cli.html[rbm_cli(7)] for options.
+
SEE ALSO
--------
link:rbm.html[rbm(1)]
diff --git a/rbm b/rbm
index 2c4ad0d..5d6417b 100755
--- a/rbm
+++ b/rbm
@@ -131,7 +131,8 @@ sub show_conf {
sub fetch {
shift;
$RBM::config->{run}{fetch} = 1;
- my @l = @_ ? @_ : (RBM::projectslist());
+ my $args = set_options(@_);
+ my @l = @$args ? @$args : (RBM::projectslist());
foreach my $project (@l) {
RBM::valid_project($project);
if (RBM::project_config($project, 'git_url')) {
More information about the tbb-commits
mailing list