The command-line parameters are parsed automatically on startup:
```
$ ./factor -a -b=1 -no-c
Factor 0.98 x86.64 (1825, heads/master-e44104c8d2, Fri Mar 17 08:21:38 2017)
[Clang (GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42))] on macosx
IN: scratchpad "a" get .
t
IN: scratchpad "b" get .
"1"
IN: scratchpad "c" get .
f
```
That's true, even if you run a specific vocabulary using ``-run`` or
execute code with "-e":
```
$ ./factor -e="USING: namespaces prettyprint ; \"a\" get . \"b\" get .
\"c\" get ." -a -b=1 -no-c
t
"1"
f
```
So, ``param`` is used for you and automatically, it's not something you
have to do... now you can use it yourself if you get your command-line from
somewhere else:
```
IN: scratchpad USE: command-line
IN: scratchpad "a" get .
f
IN: scratchpad "a" param
IN: scratchpad "a" get .
t
IN: scratchpad "b" get .
f
IN: scratchpad "b=1" param
IN: scratchpad "b" get .
"1"
IN: scratchpad t "c" set-global
IN: scratchpad "c" get .
t
IN: scratchpad "no-c" param
IN: scratchpad "c" get .
f
```
On Fri, May 5, 2017 at 5:14 AM, Alexander Ilin <ajs...@yandex.ru> wrote:
> What were you trying to do?
>
> 05.05.2017, 12:55, "Georg Simon" <georg.si...@auge.de>:
> > I tried
> > --------------------------------
> > USING:
> > command-line namespaces prettyprint sequences
> > ;
> > IN: test-script
> >
> > SYMBOL: update
> >
> > command-line get [ param ] each
> > update get .
> > --------------------------------
> > $ fl test-script.factor update
> > f
> > --------------------------------
> > What I expected was t .
> > It seems that I do not understand the usage of ```param``` ?
> >
> > ------------------------------------------------------------
> ------------------
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > _______________________________________________
> > Factor-talk mailing list
> > Factor-talk@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/factor-talk
>
> ---=====---
> Александр
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk