Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2023.1.0 - Português


sciargs

scilab command line arguments

Seqüência de Chamamento

args = sciargs()

Descrição

Esta função retorna um vetor de strings contendo os argumentos da linha de comando do Scilab. args(1) contém             o caminho absoluto e o nome do arquivo executável realmente iniciado (às vezes através de um arquivo em lotes).

Esta função corresponde a getarg na linguagem C.

Exemplos

While the current Scilab session has been opened through the command

C:\Users\Me> C:\SCIdir\bin\scilab -nw -nb -noatomsautoload -args "Hello %USERNAME%" \"%cd%\"

we then get

a = sciargs()
--> a = sciargs()
 a  =
! c:\SCIdir\bin\WScilex-cli.exe !
! -nb                           !
! -noatomsautoload              !
! -args                         !
! Hello John                    !
! "C:\Users\Me"                 !

Let's note that in scilab -nw the "-nw" option is used by the scilab batch file to route the call to WScilex-cli.exe, without forwarding "-nw". Therefore, this one is not returned by sciargs().

Ver Também

Histórico

VersãoDescrição
6.0.0 A column is returned, instead of formerly a row.
Report an issue
<< recursionlimit Configuration ver >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon May 22 12:42:11 CEST 2023