All of lore.kernel.org
 help / color / mirror / Atom feed
From: khali@linux-fr.org (Jean Delvare)
To: lm-sensors@vger.kernel.org
Subject: i2c/isa command line tools
Date: Thu, 19 May 2005 06:25:12 +0000	[thread overview]
Message-ID: <20040816204239.3dc458ec.khali@linux-fr.org> (raw)
In-Reply-To: <20040725222521.1df8dfad.khali@linux-fr.org>

> > I was thinking, instead, about an option we could add to all the
> > tools(say -y for "yes") that would skip the warning and the delay.
> > This would make the tools better for use in scripts.
> 
> I thought of that at first too, but it isn't trivial. Command line
> parsing in these tools is tricky and adding such a flag will make
> things even more complex. This may be worth the pain if someone really
> enjoys the "interactive" mode, but if not, I guess we don't want to
> keep it.
> 
> So what I propose is to surround the "interactive" code in i2cset and
> isaset with #ifdef INTERACTIVE/#endif instead of really deleting it.
> This allows people who want it to enable that "feature". In case we
> later switch to a more advanced command line parsing, we'll propose a
> switch instead.
> 
> I would also suggest not to print anything on success in
> non-interactive mode. Seems that it is a common unix practice to keep
> quiet when everything's fine.

I gave it a try. Only isaset and isadump were changed so far.
1* Wait for user confirmation instead of the arbitrary 5 sec delay.
2* Can be skipped with -y.

Please test and comment. If it's OK I'll continue with the 3 remaining
tools.

Thanks.

-- 
Jean "Khali" Delvare
http://khali.linux-fr.org/

      parent reply	other threads:[~2005-05-19  6:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-19  6:25 i2c/isa command line tools Jean Delvare
2005-05-19  6:25 ` Mark Studebaker
2005-05-19  6:25 ` Jean Delvare
2005-05-19  6:25 ` Jean Delvare [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=20040816204239.3dc458ec.khali@linux-fr.org \
    --to=khali@linux-fr.org \
    --cc=lm-sensors@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.