[PATCH] Remove -v/--verbose switch.

Nathaniel Smith njs at pobox.com
Tue Aug 19 06:02:08 UTC 2003


I noticed the -v/--verbose switch today, and was curious what it did.
Answer: absolutely nothing, under any circumstances.

-- Nathaniel

-- 
The Universe may  /  Be as large as they say
But it wouldn't be missed  /  If it didn't exist.
  -- Piet Hein
-------------- next part --------------
diff -urN --exclude='*~' --exclude='.*' --exclude=CVS --exclude='*.pyo' --exclude='*.pyc' --exclude=build --exclude=GNUmakefile --exclude=config.log --exclude=config.status --exclude=config.cache --exclude=qmtest --exclude=qm.spec --exclude='*.html' --exclude='*.dtd' --exclude=CATALOG --exclude=__version.py --exclude=thread_target --exclude=process_target qm-clean/ChangeLog qm-remove-verbose/ChangeLog
--- qm-clean/ChangeLog	2003-08-16 16:04:58.000000000 -0700
+++ qm-remove-verbose/ChangeLog	2003-08-18 22:53:18.000000000 -0700
@@ -1,3 +1,11 @@
+2003-08-18  Nathaniel Smith  <njs at codesourcery.com>
+
+	* qm/common.py (verbose): Remove variable.
+	* qm/test/cmdline.py (QMTest.verbose_option_spec): Remove.
+	(QMTest.global_options_spec): Remove 'verbose_option_spec'.
+	(QMTest.Execute): Don't set 'qm.common.verbose'.
+	* qm/test/doc/reference.xml: Don't document -v/--verbose switch.
+
 2003-08-14  Nathaniel Smith  <njs at codesourcery.com>
 
 	* qm/executable.py (Executable.Spawn): Remove __has_*_run variables.
diff -urN --exclude='*~' --exclude='.*' --exclude=CVS --exclude='*.pyo' --exclude='*.pyc' --exclude=build --exclude=GNUmakefile --exclude=config.log --exclude=config.status --exclude=config.cache --exclude=qmtest --exclude=qm.spec --exclude='*.html' --exclude='*.dtd' --exclude=CATALOG --exclude=__version.py --exclude=thread_target --exclude=process_target qm-clean/qm/common.py qm-remove-verbose/qm/common.py
--- qm-clean/qm/common.py	2003-08-10 23:44:30.000000000 -0700
+++ qm-remove-verbose/qm/common.py	2003-08-18 22:49:44.000000000 -0700
@@ -832,9 +832,6 @@
 # variables
 ########################################################################
 
-verbose = 0
-"""The verbosity level.  Higher values specify more output."""
-
 rc = RcConfiguration()
 """The configuration stored in system and user rc files."""
 
diff -urN --exclude='*~' --exclude='.*' --exclude=CVS --exclude='*.pyo' --exclude='*.pyc' --exclude=build --exclude=GNUmakefile --exclude=config.log --exclude=config.status --exclude=config.cache --exclude=qmtest --exclude=qm.spec --exclude='*.html' --exclude='*.dtd' --exclude=CATALOG --exclude=__version.py --exclude=thread_target --exclude=process_target qm-clean/qm/test/cmdline.py qm-remove-verbose/qm/test/cmdline.py
--- qm-clean/qm/test/cmdline.py	2003-08-10 13:57:14.000000000 -0700
+++ qm-remove-verbose/qm/test/cmdline.py	2003-08-18 22:52:37.000000000 -0700
@@ -118,13 +118,6 @@
         "Display usage summary."
         )
 
-    verbose_option_spec = (
-        "v",
-        "verbose",
-        None,
-        "Display informational messages."
-        )
-
     version_option_spec = (
         None,
         "version",
@@ -301,7 +294,6 @@
 
     global_options_spec = [
         help_option_spec,
-        verbose_option_spec,
         version_option_spec,
         db_path_option_spec,
         ]
@@ -619,10 +611,6 @@
             self.__WriteCommandHelp(self.__command)
             return 0
 
-        # Handle the verbose option.  The verbose level is the number of
-        # times the verbose option was specified.
-        qm.common.verbose = self.__global_options.count(("verbose", ""))
-
         # Make sure a command was specified.
         if self.__command == "":
             raise qm.cmdline.CommandError, qm.error("missing command")
diff -urN --exclude='*~' --exclude='.*' --exclude=CVS --exclude='*.pyo' --exclude='*.pyc' --exclude=build --exclude=GNUmakefile --exclude=config.log --exclude=config.status --exclude=config.cache --exclude=qmtest --exclude=qm.spec --exclude='*.html' --exclude='*.dtd' --exclude=CATALOG --exclude=__version.py --exclude=thread_target --exclude=process_target qm-clean/qm/test/doc/reference.xml qm-remove-verbose/qm/test/doc/reference.xml
--- qm-clean/qm/test/doc/reference.xml	2003-08-16 16:04:58.000000000 -0700
+++ qm-remove-verbose/qm/test/doc/reference.xml	2003-08-18 22:53:24.000000000 -0700
@@ -598,17 +598,6 @@
      </varlistentry>
 
      <varlistentry>
-      <term><option>-v</option></term>
-      <term><option>&dashdash;verbose</option></term>
-      <listitem>
-       <para>Generate progress and status messages while executing.  This
-       option may be specified more than once; the more times it is
-       specified, the higher the verbose level, and the more messages are
-       printed.</para>
-      </listitem>
-     </varlistentry>
-    
-     <varlistentry>
       <term><option>&dashdash;version</option></term>
       <listitem>
        <para>Describe the version of &qmtest; in use.</para>


More information about the qmtest mailing list