Linux CAN drivers development
 help / color / mirror / Atom feed
From: Alexander Stein <alexander.stein@systec-electronic.com>
To: Oliver Hartkopp <socketcan@hartkopp.net>
Cc: linux-can@vger.kernel.org
Subject: Re: [PATCH v2] candump: Add possibility to specify logfile
Date: Thu, 22 Aug 2013 08:04:21 +0200	[thread overview]
Message-ID: <3017118.34njPKgRTv@ws-stein> (raw)
In-Reply-To: <5214F1AB.30404@hartkopp.net>

Hello Oliver,

On Wednesday 21 August 2013 18:58:19, Oliver Hartkopp wrote:
> On 21.08.2013 11:21, Alexander Stein wrote:
> > You need to use -l/tmp/logfile (wihtout space!) because -l takes an
> > optional parameter.
> > 
> 
> Hm. I don't like that because of the "(without space!)"
> 
> If the option could have been passed like all other options (with space), it
> would have been ok. But not like this.
> 
> I know that this is a getopt problem ...

Exactly. I was wondering my self, but otherwise how can an optional parameter implemented in a different way?

> Btw. why can't you just use '-L' and redirect the output, e.g.
> 
> candump -L can0 > mylogfile.log

You can, certainly. I was just wondering why the user must not specify a logfile name at first place.

Regards,
Alexander


      reply	other threads:[~2013-08-22  6:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-21  8:17 [PATCH] candump: Add possibility to specify logfile Alexander Stein
2013-08-21  8:28 ` Marc Kleine-Budde
2013-08-21  8:29   ` Marc Kleine-Budde
2013-08-21  9:21     ` [PATCH v2] " Alexander Stein
2013-08-21 16:58       ` Oliver Hartkopp
2013-08-22  6:04         ` Alexander Stein [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3017118.34njPKgRTv@ws-stein \
    --to=alexander.stein@systec-electronic.com \
    --cc=linux-can@vger.kernel.org \
    --cc=socketcan@hartkopp.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox