diff options
| -rw-r--r-- | docs/tomo.1.md | 42 | ||||
| -rw-r--r-- | man/man1/tomo.1 | 44 |
2 files changed, 43 insertions, 43 deletions
diff --git a/docs/tomo.1.md b/docs/tomo.1.md index 79c94ddd..4bd1771b 100644 --- a/docs/tomo.1.md +++ b/docs/tomo.1.md @@ -17,11 +17,11 @@ Transpile tomo files to C files: Compile files to static object files: : `tomo` `-c` *file1.tm* *file2.tm*... -Compile file to an executable: -: `tomo` `-e` *file1.tm* +Compile files to a executables: +: `tomo` `-e` *file1.tm* *file2.tm*... -Build a shared library: -: `tomo` `-s=`*mylib.1.2.3* *file1.tm* *file2.tm*... +Build a library: +: `tomo` `-L` *file1.tm* *file2.tm*... # DESCRIPTION @@ -35,20 +35,23 @@ C code, which is then compiled using a C compiler of your choice. `--changelog` : Print the compiler change log and exit. -`--compile-exe`, `-e` -: Compile the input file to an executable. +`--transpile`, `-t` *file1.tm* *file2.tm*... +: Transpile the given files to C. -`--compile-obj`, `-c` -: Compile the input files to static objects, rather than running them. +`--compile-exe`, `-e` *file1.tm* *file2.tm*... +: Compile the given files to executables. + +`--compile-obj`, `-c` *file1.tm* *file2.tm*... +: Compile the given files to static objects. `--help`, `-h` : Print the usage and exit. -`--install`, `-I` -: Install the compiled executable or library. +`--library`, `-L` *folder1* *folder2*... +: Compile the input folders to shared libraries. -`--library`, `-L` -: Compile the input files to a shared library file and header. +`--install`, `-I` +: When using `-e` or `-L`, install the resulting executables or libraries. `--show-codegen` *<program>*, `-C` *<program>* : Set a program (e.g. `cat` or `bat`) to display the generated code @@ -56,11 +59,11 @@ C code, which is then compiled using a C compiler of your choice. `--force-rebuild`, `-f` : Force rebuilding/recompiling. -`--format` -: Autoformat a file and print it to standard output. +`--format` *file1.tm* *file2.tm*... +: Autoformat the given files and print them to standard output. -`--format-inplace` -: Autoformat a file in-place. +`--format` *file1.tm* *file2.tm*... +: Autoformat the given files in-place and overwrite the original files. `--optimization` **level**, `-O` **level** : Set the optimization level. @@ -77,11 +80,8 @@ C code, which is then compiled using a C compiler of your choice. `--source-mapping=`, `-m=` **<yes|no>** : Toggle whether source mapping should be enabled or disabled. -`--transpile`, `-t` -: Transpile the input files to C code without compiling them. - -`--uninstall`, `-u` -: Uninstall a compiled executable or library. +`--uninstall`, `-u` *lib1* *lib2*... +: Uninstall the given libraries. `--verbose`, `-v` : Print extra verbose output. diff --git a/man/man1/tomo.1 b/man/man1/tomo.1 index 5134d963..ef3a2e24 100644 --- a/man/man1/tomo.1 +++ b/man/man1/tomo.1 @@ -15,12 +15,11 @@ Transpile tomo files to C files: Compile files to static object files: \f[B]tomo\f[R] \f[B]\-c\f[R] \f[I]file1.tm\f[R] \f[I]file2.tm\f[R]\&... .TP -Compile file to an executable: -\f[B]tomo\f[R] \f[B]\-e\f[R] \f[I]file1.tm\f[R] +Compile files to a executables: +\f[B]tomo\f[R] \f[B]\-e\f[R] \f[I]file1.tm\f[R] \f[I]file2.tm\f[R]\&... .TP -Build a shared library: -\f[B]tomo\f[R] \f[B]\-s=\f[R]\f[I]mylib.1.2.3\f[R] \f[I]file1.tm\f[R] -\f[I]file2.tm\f[R]\&... +Build a library: +\f[B]tomo\f[R] \f[B]\-L\f[R] \f[I]file1.tm\f[R] \f[I]file2.tm\f[R]\&... .SH DESCRIPTION Tomo is a programming language that is statically typed, compiled, small, and garbage\-collected, with concise syntax and built\-in support @@ -32,20 +31,24 @@ compiler of your choice. \f[B]\-\-changelog\f[R] Print the compiler change log and exit. .TP -\f[B]\-\-compile\-exe\f[R], \f[B]\-e\f[R] -Compile the input file to an executable. +\f[B]\-\-transpile\f[R], \f[B]\-t\f[R] \f[I]file1.tm\f[R] \f[I]file2.tm\f[R]\&... +Transpile the given files to C. .TP -\f[B]\-\-compile\-obj\f[R], \f[B]\-c\f[R] -Compile the input files to static objects, rather than running them. +\f[B]\-\-compile\-exe\f[R], \f[B]\-e\f[R] \f[I]file1.tm\f[R] \f[I]file2.tm\f[R]\&... +Compile the given files to executables. +.TP +\f[B]\-\-compile\-obj\f[R], \f[B]\-c\f[R] \f[I]file1.tm\f[R] \f[I]file2.tm\f[R]\&... +Compile the given files to static objects. .TP \f[B]\-\-help\f[R], \f[B]\-h\f[R] Print the usage and exit. .TP -\f[B]\-\-install\f[R], \f[B]\-I\f[R] -Install the compiled executable or library. +\f[B]\-\-library\f[R], \f[B]\-L\f[R] \f[I]folder1\f[R] \f[I]folder2\f[R]\&... +Compile the input folders to shared libraries. .TP -\f[B]\-\-library\f[R], \f[B]\-L\f[R] -Compile the input files to a shared library file and header. +\f[B]\-\-install\f[R], \f[B]\-I\f[R] +When using \f[B]\-e\f[R] or \f[B]\-L\f[R], install the resulting +executables or libraries. .TP \f[B]\-\-show\-codegen\f[R] \f[I]\f[R], \f[B]\-C\f[R] \f[I]\f[R] Set a program (e.g.\ \f[B]cat\f[R] or \f[B]bat\f[R]) to display the @@ -54,11 +57,11 @@ generated code \f[B]\-\-force\-rebuild\f[R], \f[B]\-f\f[R] Force rebuilding/recompiling. .TP -\f[B]\-\-format\f[R] -Autoformat a file and print it to standard output. +\f[B]\-\-format\f[R] \f[I]file1.tm\f[R] \f[I]file2.tm\f[R]\&... +Autoformat the given files and print them to standard output. .TP -\f[B]\-\-format\-inplace\f[R] -Autoformat a file in\-place. +\f[B]\-\-format\f[R] \f[I]file1.tm\f[R] \f[I]file2.tm\f[R]\&... +Autoformat the given files in\-place and overwrite the original files. .TP \f[B]\-\-optimization\f[R] \f[B]level\f[R], \f[B]\-O\f[R] \f[B]level\f[R] Set the optimization level. @@ -76,11 +79,8 @@ Run an installed tomo program from \f[B]\-\-source\-mapping=\f[R], \f[B]\-m=\f[R] \f[B]<yes|no>\f[R] Toggle whether source mapping should be enabled or disabled. .TP -\f[B]\-\-transpile\f[R], \f[B]\-t\f[R] -Transpile the input files to C code without compiling them. -.TP -\f[B]\-\-uninstall\f[R], \f[B]\-u\f[R] -Uninstall a compiled executable or library. +\f[B]\-\-uninstall\f[R], \f[B]\-u\f[R] \f[I]lib1\f[R] \f[I]lib2\f[R]\&... +Uninstall the given libraries. .TP \f[B]\-\-verbose\f[R], \f[B]\-v\f[R] Print extra verbose output. |
