summaryrefslogtreecommitdiff
path: root/cesar/common
diff options
context:
space:
mode:
authorNicolas Schodet2012-03-27 14:31:35 +0200
committerNicolas Schodet2012-04-11 11:16:02 +0200
commit38b96ce355332fe8d21d2b2f93a1b4aeafe795c7 (patch)
treed8879eff7e5e5b4efcc1d2a74f7f1715d2a6a441 /cesar/common
parentae31c9cc170c05e9db029f8c7f09960643355107 (diff)
cesar/common/doc/dox2rst: add --width option
Diffstat (limited to 'cesar/common')
-rwxr-xr-xcesar/common/doc/dox2rst7
1 files changed, 6 insertions, 1 deletions
diff --git a/cesar/common/doc/dox2rst b/cesar/common/doc/dox2rst
index f8f5395613..d85218f2c9 100755
--- a/cesar/common/doc/dox2rst
+++ b/cesar/common/doc/dox2rst
@@ -9,11 +9,13 @@ use Pod::Usage;
my $help;
my $scale;
+my $width;
my @include;
push @include, '.';
GetOptions (
'help|h' => \$help,
'scale|s=s' => \$scale,
+ 'width|w=s' => \$width,
'I=s' => \@include,
) or pod2usage (2);
pod2usage (1) if $help;
@@ -37,7 +39,9 @@ while (<>)
if (/^\\image html (.*?) "(.*)"$/)
{
my ($img, $legend) = ($1, $2);
- my $s = defined $scale ? " :scale: $scale\n" : '';
+ my $s = '';
+ $s .= defined $scale ? " :scale: $scale\n" : '';
+ $s .= defined $width ? " :width: $width\n" : '';
$_ = <<EOF;
.. figure:: $1
$s
@@ -126,6 +130,7 @@ dox2rst [options] hop
Options:
-h, --help brief help message
-s, --scale=SCALE include a scale attribute in images
+ -w, --width=WIDTH include a width attribute in images
=cut