Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opening a project by command line #956

Open
oxmon-2500 opened this issue Feb 6, 2020 · 1 comment
Open

Opening a project by command line #956

oxmon-2500 opened this issue Feb 6, 2020 · 1 comment

Comments

@oxmon-2500
Copy link
Contributor

oxmon-2500 commented Feb 6, 2020

If someone works repeatedly on a set of projects it would be nice to open the project by command line parameter like:
qucs [ projectPath_prj [ schematicName.sch ] ]
Calling qucs without command line parameteres should works as previously (open the project specified in "Qucs Home")

Command line enhancement: It is now possible to specify a project and schematic files to open by command line.
Usage:
~/local/qucs/bin/qucs --help
Usage: /home/gAz_/local/qucs/bin/qucs [-h|--help] [-v|--version]
qucs -n -i FILENAME -o FILENAME
qucs -p -i FILENAME -o FILENAME.[pdf|png|svg|eps]
qucs [ projectPath] [ filePath1 [ filePath2 ... ] ] ]

-h, --help display this help and exit
-v, --version display version information and exit
-n, --netlist convert Qucs schematic into netlist
-p, --print print Qucs schematic to file (eps needs inkscape)
--page [A4|A3|B4|B5] set print page size (default A4)
--dpi NUMBER set dpi value (default 96)
--color [RGB|RGB] set color mode (default RGB)
--orin [portrait|landscape] set orientation (default portrait)
-i FILENAME use file as input schematic
-o FILENAME use file as output netlist
-icons create component icons under ./bitmaps_generated
-doc dump data for documentation:

  • file with of categories: categories.txt
  • one directory per category (e.g. ./lumped components/)
  • CSV file with component data ([comp#]_data.csv)
  • CSV file with component properties. ([comp#]_props.csv)
    -a plugin load (attach) plugin -- under construction -q, --quit exit

Examples:
qucs -n -i schematic.sch -o netlist.net
qucs -p -i schematic.sch -o output.png --page A4 --dpi 120 --orin landscape
qucs -icons
qucs -doc
qucs ../qucs-test/testsuite/AC_bandpass_prj/ bandpass.sch opa227.sch
qucs ~/proj/qucs-test/testsuite/DC_AC_gain_prj "*.sch"

@oxmon-2500 oxmon-2500 changed the title Opening a project by command line Opening a project by command line (WIP) Feb 20, 2020
@oxmon-2500 oxmon-2500 changed the title Opening a project by command line (WIP) Opening a project by command line Feb 26, 2020
oxmon-2500 added a commit to oxmon-2500/qucs that referenced this issue Mar 7, 2020
oxmon-2500 added a commit to oxmon-2500/qucs that referenced this issue Mar 11, 2020
qucs issue Qucs#956
Additionaly to existing options the following arguments are allowed:
qucs [ projectPath] [ filePath1  [ filePath2 ... ] ] ]
@felix-salfelder
Copy link
Member

what is the difference between a "project" and a directory?

i suggest to use a letter option for this, like-C project_path. then e.g. in bash, qucs -C project_path [..] should behave like (cd project_path; qucs [..]), but no need for bash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants