quilt-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Quilt-dev] [patch] Add -v to --trace


From: Dean Roehrich
Subject: Re: [Quilt-dev] [patch] Add -v to --trace
Date: Mon, 13 Sep 2004 14:53:25 -0500

>From:  Andreas Gruenbacher <address@hidden>
>On Monday 13 September 2004 21:13, Dean Roehrich wrote:
>> We've had some internal requests for adding the bash -v option with
>> --trace.
>
>Hmm, would --trace[=-v] be acceptable?

I'm sure it would.  I imagine it would look something like the following.
Anyone have some creative ideas for the Usage and Help lines?

Dean


Index: work20040913/bin/quilt.in
===================================================================
--- work20040913.orig/bin/quilt.in      2004-09-13 09:51:38.000000000 -0500
+++ work20040913/bin/quilt.in   2004-09-13 14:52:25.000000000 -0500
@@ -17,7 +17,7 @@ fi
 usage()
 {
 
-       echo $"Usage: quilt [--trace] [--quiltrc=XX] command [-h] ..."
+       echo $"Usage: quilt [--trace=-xv] [--quiltrc=XX] command [-h] ..."
 
        echo $"Commands are:"
        quilt_commands \
@@ -28,7 +28,8 @@ usage()
 Common options to all commands:
 
 --trace
-       Runs the command in bash trace mode (-x). For internal debugging.
+       Runs the command in bash trace mode (-x), or with the specified
+       options.  For internal debugging.
 
 --quiltrc file
        Use the specified configuration file instead of ~/.quiltrc. 
@@ -68,6 +69,8 @@ do
                [ "$QUILTRC" = - ] && unset QUILTRC
                shift ;;
        # Trace execution of commands
+       --trace=*)
+               BASH_OPTS=${1#--trace=} ;;
        --trace)
                BASH_OPTS=-x ;;
        *)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]