Skip to content
Snippets Groups Projects
Commit 72ffe3e5 authored by Julien Signoles's avatar Julien Signoles
Browse files

Merge branch 'feature/andre/frama-c-config-aliases' into 'master'

[Dev] add short options to frama-c-config

See merge request frama-c/frama-c!2681
parents 82825058 9ade854f
No related branches found
No related tags found
No related merge requests found
...@@ -42,14 +42,36 @@ let options = Arg.([ ...@@ -42,14 +42,36 @@ let options = Arg.([
Unit (fun _ -> Format.printf "%s%!" Fc_config.datadir; exit 0), Unit (fun _ -> Format.printf "%s%!" Fc_config.datadir; exit 0),
" Print the path of Frama-C share directory"; " Print the path of Frama-C share directory";
"-share",
Unit (fun _ -> Format.printf "%s%!" Fc_config.datadir; exit 0),
" Alias for -print-share-path";
"-libc",
Unit (fun _ -> Format.printf "%s%!"
(Filename.concat Fc_config.datadir "libc"); exit 0),
" Print the path of Frama-C standard library directory";
"-scripts",
Unit (fun _ -> Format.printf "%s%!"
(Filename.concat Fc_config.datadir "analyis-scripts"); exit 0),
" Print the path of Frama-C analysis-scripts directory";
"-print-libpath", "-print-libpath",
Unit (fun _ -> Format.printf "%s%!" Fc_config.libdir; exit 0), Unit (fun _ -> Format.printf "%s%!" Fc_config.libdir; exit 0),
" Print the path of Frama-C kernel library"; " Print the path of Frama-C kernel library";
"-libpath",
Unit (fun _ -> Format.printf "%s%!" Fc_config.libdir; exit 0),
" Alias for -print-libpath";
"-print-plugin-path", "-print-plugin-path",
Unit (fun _ -> Format.printf "%s%!" Fc_config.plugin_path; exit 0), Unit (fun _ -> Format.printf "%s%!" Fc_config.plugin_path; exit 0),
" Print the path where Frama-C dynamic plug-ins are searched for"; " Print the path where Frama-C dynamic plug-ins are searched for";
"-plugin-path",
Unit (fun _ -> Format.printf "%s%!" Fc_config.plugin_path; exit 0),
" Alias for -print-plugin-path";
"-print-version", "-print-version",
Unit (fun _ -> Format.printf "%s%!" Fc_config.version; exit 0), Unit (fun _ -> Format.printf "%s%!" Fc_config.version; exit 0),
" Print the version number of Frama-C"; " Print the version number of Frama-C";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment