add short options for --quiet, --silent, --verbose and --debug

pull/1/head
parent fffd74afc2
commit db415fe4f4
Signed by: josch
GPG Key ID: F2CBA5C78FBD83E1

@ -1705,10 +1705,10 @@ sub main() {
'mode=s' => \$options->{mode}, 'mode=s' => \$options->{mode},
'dpkgopt=s@' => \$options->{dpkgopts}, 'dpkgopt=s@' => \$options->{dpkgopts},
'aptopt=s@' => \$options->{aptopts}, 'aptopt=s@' => \$options->{aptopts},
'silent' => sub { $verbosity_level = 0; }, 's|silent' => sub { $verbosity_level = 0; },
'quiet' => sub { $verbosity_level = 0; }, 'q|quiet' => sub { $verbosity_level = 0; },
'verbose' => sub { $verbosity_level = 2; }, 'v|verbose' => sub { $verbosity_level = 2; },
'debug' => sub { $verbosity_level = 3; }, 'd|debug' => sub { $verbosity_level = 3; },
# no-op options so that mmdebstrap can be used with # no-op options so that mmdebstrap can be used with
# sbuild-createchroot --debootstrap=mmdebstrap # sbuild-createchroot --debootstrap=mmdebstrap
'resolve-deps' => sub { push @{$options->{noop}}, 'resolve-deps'; }, 'resolve-deps' => sub { push @{$options->{noop}}, 'resolve-deps'; },
@ -2561,16 +2561,16 @@ Examples:
=end comment =end comment
=item B<--quiet>, B<--silent> =item B<-q,--quiet>, B<-s,--silent>
Do not write anything to standard error. Do not write anything to standard error.
=item B<--verbose> =item B<-v,--verbose>
Instead of progress bars, write the dpkg and apt output directly to standard Instead of progress bars, write the dpkg and apt output directly to standard
error. error.
=item B<--debug> =item B<-d,--debug>
In addition to the output produced by B<--verbose>, write detailed debugging In addition to the output produced by B<--verbose>, write detailed debugging
information to standard error. Errors will print a backtrace. information to standard error. Errors will print a backtrace.

Loading…
Cancel
Save