]> git.donarmstrong.com Git - bin.git/blobdiff - make_invoice
* document tex-only and log-only
[bin.git] / make_invoice
index c0d79badc06b6b03eae696a6560d05ba18b6decc..6c7e4a1da725d25fc265e2f9a214e9b1920a682e 100755 (executable)
@@ -65,6 +65,14 @@ Time granularity, defaults to 0.
 
 Hourly fee, defaults to 50.00
 
+=item B<--tex-only>
+
+Only output the LaTeX file
+
+=item B<--log-only>
+
+Only output the log file
+
 =item B<--debug, -d>
 
 Debug verbosity. (Default 0)
@@ -105,6 +113,7 @@ my %options = (log             => undef,
               help            => 0,
               man             => 0,
               log_only        => 0,
+              tex_only        => 0,
               );
 
 GetOptions(\%options,
@@ -113,6 +122,7 @@ GetOptions(\%options,
           'time_interval|min-time-interval|T=s',
           'hourly_fee|hourly-fee|f=s',
           'log_only|log-only',
+          'tex_only|tex-only',
           'debug|d+','help|h|?','man|m');
 
 pod2usage() if $options{help};
@@ -263,6 +273,12 @@ if ($options{log_only}) {
     exit 0;
 }
 
+if ($options{tex_only}) {
+    print $tex_invoice;
+    exit 0;
+}
+
+
 my $invoice_date = strftime('%Y_%m_%d',localtime($last_date));
 my $invoice_dir = "invoice_$invoice_date";