From c8c82cb2a9e550471dc3251fb1dd2941edfb6306 Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Mon, 30 Sep 2024 11:42:48 +0200 Subject: [PATCH] driver: shuffle commands between help groups --- kernel/driver.cc | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/kernel/driver.cc b/kernel/driver.cc index 613f98ad450..2b7f3b476b4 100644 --- a/kernel/driver.cc +++ b/kernel/driver.cc @@ -205,8 +205,9 @@ int main(int argc, char **argv) bool mode_q = false; cxxopts::Options options(argv[0], "Yosys Open SYnthesis Suite"); + options.set_width(SIZE_MAX); - options.add_options("functional") + options.add_options("operation") ("b,backend", "use for the output file specified on the command line", cxxopts::value(), "") ("f,frontend", "use for the input files on the command line", @@ -218,6 +219,8 @@ int main(int argc, char **argv) ("C,tcl-interactive", "enters TCL interactive shell mode") ("p,commands", "execute (to chain commands, separate them with semicolon + whitespace: 'cmd1; cmd2')", cxxopts::value>(), "") + ("r,top", "elaborate the specified HDL module", + cxxopts::value(), "") ("m,plugin", "load the specified module", cxxopts::value>(), "") ("D,define", "set the specified Verilog define to if supplied via command \"read -define\"", @@ -228,12 +231,13 @@ int main(int argc, char **argv) "For more complex synthesis jobs it is recommended to use the read_* and write_* " \ "commands in a script file instead of specifying input and output files on the " \ "command line.") - ("infile", "input files", cxxopts::value>()) - ; - options.add_options("logging") ("H", "print the command list") ("h,help", "print this help message. If given, print help for .", cxxopts::value(), "[]") + ("V,version", "print version information and exit") + ("infile", "input files", cxxopts::value>()) + ; + options.add_options("logging") ("Q", "suppress printing of banner (copyright, disclaimer, version)") ("T", "suppress printing of footer (log hash, version, timing statistics)") ("q,quiet", "quiet operation. Only write warnings and error messages to console. " \ @@ -261,14 +265,11 @@ int main(int argc, char **argv) cxxopts::value>(), "") ("E,deps-file", "write a Makefile dependencies file with input and output file names", cxxopts::value(), "") - ("V,version", "print version information and exit") ; options.add_options("developer") ("X,trace", "enable tracing of core data structure changes. for debugging") ("M,randomize-pointers", "will slightly randomize allocated pointer addresses. for debugging") ("A,abort", "will call abort() at the end of the script. for debugging") - ("r,top", "elaborate the specified HDL module", - cxxopts::value(), "") ("x,experimental", "do not print warnings for the experimental ", cxxopts::value>(), "") ("g,debug", "globally enable debug log messages")