Skip to content

Commit

Permalink
Add documentation of command-line options
Browse files Browse the repository at this point in the history
  • Loading branch information
petere committed Jan 16, 2011
1 parent 5a670b9 commit abf87f4
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion debnorepo
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,23 @@ use Getopt::Long;
use Term::ReadKey;
use Text::Wrap;

my @results = ();
=head1 OPTIONS
=over 4
=item B<-U>, B<--include-available-upgrades>
Normally, packages that have available upgrades are not listed. This
option includes them.
=back
=cut

my $include_available_upgrades = 0;
GetOptions("include-available-upgrades|U" => \$include_available_upgrades);

my @results = ();
my ($pkg, $has_repo, $no_repo_pinned, $found_installed, $found_candidate);

foreach my $line (`dpkg --get-selections | egrep ' (install|hold)' | awk '{print \$1}' | xargs -r apt-cache policy`) {
Expand Down

0 comments on commit abf87f4

Please sign in to comment.