summaryrefslogtreecommitdiff
path: root/ftparchive
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 17:04:34 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 17:04:34 +0000
commit0dfd2728dea9b0a6a92f1272ecaa475adc2f9276 (patch)
treec2f8315a519456c4fbe34f3eff09dca44c0a108d /ftparchive
parent909b0a51e82d4678496e1de33c0cf21263156ba6 (diff)
Add release to usage output
Author: mdz Date: 2003-12-26 22:50:52 GMT Add release to usage output Check number of arguments to release
Diffstat (limited to 'ftparchive')
-rw-r--r--ftparchive/apt-ftparchive.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/ftparchive/apt-ftparchive.cc b/ftparchive/apt-ftparchive.cc
index 02e98bae6..287f40a10 100644
--- a/ftparchive/apt-ftparchive.cc
+++ b/ftparchive/apt-ftparchive.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: apt-ftparchive.cc,v 1.10 2003/12/26 20:50:01 mdz Exp $
+// $Id: apt-ftparchive.cc,v 1.11 2003/12/26 22:50:52 mdz Exp $
/* ######################################################################
apt-scanpackages - Efficient work-alike for dpkg-scanpackages
@@ -552,6 +552,7 @@ bool ShowHelp(CommandLine &CmdL)
"Commands: packages binarypath [overridefile [pathprefix]]\n"
" sources srcpath [overridefile [pathprefix]]\n"
" contents path\n"
+ " release path\n"
" generate config [groups]\n"
" clean config\n"
"\n"
@@ -677,6 +678,9 @@ bool SimpleGenSources(CommandLine &CmdL)
// ---------------------------------------------------------------------
bool SimpleGenRelease(CommandLine &CmdL)
{
+ if (CmdL.FileSize() < 2)
+ return ShowHelp(CmdL);
+
ReleaseWriter Release("");
if (_error->PendingError() == true)
return false;