File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -595,14 +595,22 @@ let state =
595595 Arg. (value & opt bool false & info [" syntax-error-ref" ] ~doc ~docs: error_section)
596596 in
597597 let progress_enabled =
598- let doc = Format. asprintf " Print progress information." in
599- Arg. (value & opt bool false & info [" progress" ] ~doc ~docs: profiling_section)
598+ let default = false in
599+ let pos_flag =
600+ let doc = Format. asprintf " Enable printing of progress bars." in
601+ Arg. info [" p" ; " progress" ] ~doc ~docs: profiling_section
602+ in
603+ let neg_flag =
604+ let doc = Format. asprintf " Disable printing of progress bars." in
605+ Arg. info [" no-progress" ] ~doc ~docs: profiling_section
606+ in
607+ Arg. (value & vflag default [true , pos_flag; false , neg_flag])
600608 in
601609 let progress_mem =
602610 let doc = Format. asprintf
603611 " Compute memory usage in progress info. Note that this may slow \
604612 down dolmen significantly (experiments suggest around 3x)." in
605- Arg. (value & opt bool false & info [" progress-mem" ] ~doc ~docs: profiling_section)
613+ Arg. (value & opt bool true & info [" progress-mem" ] ~doc ~docs: profiling_section)
606614 in
607615 Term. (const mk_run_state $ profiling_t $
608616 gc $ gc_t $ bt $ colors $
You can’t perform that action at this time.
0 commit comments