[GRASS5] [bug #2775] (grass) help argument not noticed among others

this bug's URL: http://intevation.de/rt/webrt?serial_num=2775
-------------------------------------------------------------------------

Help argument not noticed among:
$ v.distance -p help from=shicorner2 to=shicorner2 upload=dist,to_along column=1,5
5.7.0

--- Headers Follow ---

From jidanni@jidanni.org Sun Dec 5 06:35:59 2004

Return-Path: <jidanni@jidanni.org>
Delivered-To: grass-bugs@lists.intevation.de
Received: from mail.intevation.de (aktaia [212.95.126.10])
  by lists.intevation.de (Postfix) with ESMTP id 4E9D7100167
  for <grass-bugs@lists.intevation.de>; Sun, 5 Dec 2004 06:35:59 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
  by mail.intevation.de (Postfix) with ESMTP id 753DF36DEF
  for <grass-bugs@lists.intevation.de>; Sun, 5 Dec 2004 06:35:58 +0100 (CET)
Received: from frodo.hserus.net (frodo.hserus.net [204.74.68.40])
  by mail.intevation.de (Postfix) with ESMTP id 9C77336DE2
  for <grass-bugs@intevation.de>; Sun, 5 Dec 2004 06:35:53 +0100 (CET)
Received: from [219.69.72.195] (port=35038 helo=jidanni1)
  by frodo.hserus.net with esmtpsa
  (Cipher TLSv1:RC4-SHA:128) (Exim 4.43 #0)
  id 1Cap3o-000DU9-D2 by authid <jidanni> with plain
  for <grass-bugs@intevation.de>; Sun, 05 Dec 2004 11:05:52 +0530
To: grass-bugs@intevation.de
Subject: help argument not noticed among others
From: Dan Jacobson <jidanni@jidanni.org>
Date: Sun, 05 Dec 2004 08:29:24 +0800
Message-ID: <87sm6lsi3f.fsf@jidanni.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Status: No, hits=-4.5 tagged_above=-999.0 required=3.0 tests=BAYES_00,
  DATE_IN_PAST_03_06
X-Spam-Level:

-------------------------------------------- Managed by Request Tracker

this bug's URL: http://intevation.de/rt/webrt?serial_num=2775
---------------------------------------------------------------------

Help argument not noticed among:
$ v.distance -p help from=shicorner2 to=shicorner2 \
    upload=dist,to_along column=1,5 5.7.0

That should give you an error ... does it?

anything but

v.distance help
v.distance --help

should give you an error. 'help' is only scanned for as the first
arguement, anything after the 'help' is ignored.

The error should show the usage screen though, so little harm.

If some text is given, the parser assumes it is the first arguement,
e.g.

d.erase color=blue
d.erase blue

compare
d.erase blue help
with
d.erase help blue

Hamish