[PATCH] Print help text if no subcommand is provided

Philipp Weissenbacher (via Code Review) gerrit at gerrit.libreoffice.org
Mon Mar 4 06:57:36 PST 2013


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/2541

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/41/2541/1

Print help text if no subcommand is provided

Change-Id: Id9abc3ab45af8b6e44904090e179ce67a3f45796
---
M logerrit
1 file changed, 1 insertion(+), 1 deletion(-)



diff --git a/logerrit b/logerrit
index 2456ae1..d08768d 100755
--- a/logerrit
+++ b/logerrit
@@ -48,7 +48,7 @@
 }
 
 case "$1" in
-	help|--help)
+	help|--help|"")
 		echo "Usage: ./logerrit subcommand [options]"
 		echo "simple and basic tool to interact with LibreOffice gerrit"
 		echo "subcommands:"

-- 
To view, visit https://gerrit.libreoffice.org/2541
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id9abc3ab45af8b6e44904090e179ce67a3f45796
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Philipp Weissenbacher <p.weissenbacher at gmail.com>



More information about the LibreOffice mailing list