bugutil-vserver - Bugs: bug #27135, [PATCH] vsomething --help output...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #27135: [PATCH] vsomething --help output is incorrect

Submitter:  Matthijs Kooijman <matthijs>
Submitted:  Wed 29 Jul 2009 11:46:13 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  Documentation Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Component Version:  alpha
Release:  trunk (r2844)

Wed 29 Jul 2009 12:03:33 PM UTC, comment #1: 

A slightly improved version of the patch is below. This also documents the extra options, besides --all that are available (which I only found after writing a patch to make vapt-get --all skip stopped vservers, which can be achieved with --running just as easy).


Index: scripts/vsomething
===================================================================
--- scripts/vsomething  (revision 2844)
+++ scripts/vsomething  (working copy)
@@ -29,10 +29,17 @@
 function showHelp()
 {
     echo \
-$"Usage: $0 [--quiet|-q] [--debug] <cmd> [--] <vserver-name>* [--all] -- <params>+
+$"Usage: $0 [--quiet|-q] [--debug] <cmd> <vserver-name>* [-- <params>*]

-Execute <cmd> <vserver> <params>* foreach vserver.
+Execute <cmd> <vserver> <params>* foreach vserver named.

+Each vserver-name can be a name of a vserver, or one of:
+  --all       All vservers
+  --marked    Vservers that are marked (have a apps/init/mark file)
+  --unmarked  Vservers that are not marked (do not have a apps/init/mark file)
+  --running   Vservers that are running
+  --stopped   VServers that are not running
+
 Report bugs to <$PACKAGE_BUGREPORT>."
     exit 0
 }


Matthijs Kooijman <matthijs>
Wed 29 Jul 2009 11:46:13 AM UTC, original submission:  

As per subject. The below oneliner makes --help consistent with the code again:

Index: scripts/vsomething
===================================================================
--- scripts/vsomething  (revision 2844)
+++ scripts/vsomething  (working copy)
@@ -29,7 +29,7 @@
 function showHelp()
 {
     echo
-$"Usage: $0 [--quiet|-q] [--debug] <cmd> [--] <vserver-name>* [--all] -- <params>+
+$"Usage: $0 [--quiet|-q] [--debug] <cmd> <vserver-name>* [--all] [-- <params>+]
 
 Execute <cmd> <vserver> <params>* foreach vserver.
 

Matthijs Kooijman <matthijs>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by matthijs (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code