6.2 lepton-netlist command-line arguments

Running lepton-netlist without arguments yields a prompt for the user how to run it properly or how to get help.

By running it with the option -h or --help you can get the actual list of optional arguments accepted on the command-line. lepton-netlist(1) man page also lists all of them, type man lepton-netlist in your terminal to open the page.

The basic usage is:

lepton-netlist [option ...] [-g backend] [--] file ...

Message output and diagnostics options:

-q
--quiet

Quiet mode. Turn off all warnings/notes/messages.

-v
--verbose

Verbose mode. Output extra diagnostic information.

-h
--help

Print a help message.

-V
--version

Print lepton-netlist version information.

-b
--list-backends

Print a list of available netlist backends.

Netlist processing options:

-o file
--output=file

Output the generated netlist to file. The default output name is output.net. If file is ‘-’ (dash), the output is directed to the standard output.

-g backend
--backend=backend

Specify backend name backend which will be used to generate netlist data.

-f backend-file
--file-backend=backend-file

Specify path to netlist backend file backend-file which will be used to generate netlist data.

-O string
--backend-option=string

Pass an option string to the netlist backend.

-i
--interactive

Enter the interactive mode. Run Scheme REPL instead of running a backend.

--

Treat all remaining arguments as schematic or symbol filenames. This may be useful if any of the filenames begins with ‘-’.

Scheme extensibility options:

-L directory
--load-path=directory

Prepend directory to the list of directories to be searched for Scheme files (Scheme %load-path). This option can be specified multiple times.

-c expr
--eval-code=expr

Specify a Scheme expression to be evaluated at startup. This option can be specified multiple times.

-l file
--pre-load=file

Specify a Scheme script to be executed before loading a backend. This option can be specified multiple times.

-m file
--post-load=file

Specify a Scheme script to be executed after loading a backend. This option can be specified multiple times.