zsh-users
 help / color / mirror / code / Atom feed
From: Stephane Chazelas <stephane@chazelas.org>
To: Roger Mason <rmason@mun.ca>
Cc: zsh-users@zsh.org
Subject: Re: zpasesopts problem
Date: Wed, 2 Jun 2021 18:00:52 +0100	[thread overview]
Message-ID: <20210602170052.jsrzn5374lxpxmwg@chazelas.org> (raw)
In-Reply-To: <y65lf7s1bwr.fsf@mun.ca>

2021-06-02 13:44:44 -0230, Roger Mason:
[...]
> rm -rf *20210602-*;./GenerateElkJX.sh filmperthite --tasks 0 --spsource \
> SpeciesGenerated --symbol Si --rmt 1.55 --nocc 7 --vstates '1112'
> 
> I get:
> 
> Parsing species options.
> The numbers of chemical chemsyms, RMTs, occupation numbers and valence states do not match.
> #chemsyms = 0, #rmts = 2, #noccs = 2, #vstates = 2
> Check your command line.  Exiting.
> 
> I don't understand why the value given for chemsyms (--symbol Si) is
> unrecognised.
> 
> Thanks for any help in making this work.
[...]

You're not showing the full script, so we don't know what $argv
contains at the time zparseopts is being invoked.

I'd recommend you add a

typeset -p argv

before the zparseopts call.

My guess would be that you're expecting $argv to be:

typeset -a argv=( --symbol Si --rmt 1.55 --nocc 7 --vstates 1112 )

but it's not, possibly because you've called "shift" too many
times or with the wrong number as argument.

-- 
Stephane


  reply	other threads:[~2021-06-02 17:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-02 16:14 Roger Mason
2021-06-02 17:00 ` Stephane Chazelas [this message]
2021-06-02 17:23   ` Roger Mason
2021-06-02 20:30     ` gammafunction
2021-06-03  9:24       ` Roger Mason

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=20210602170052.jsrzn5374lxpxmwg@chazelas.org \
    --to=stephane@chazelas.org \
    --cc=rmason@mun.ca \
    --cc=zsh-users@zsh.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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).