Skip to content

Commit

Permalink
wrapped the output of gfan --help
Browse files Browse the repository at this point in the history
  • Loading branch information
mahrud committed Oct 19, 2024
1 parent 2866d6e commit f25618d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion M2/Macaulay2/packages/gfanInterface.m2
Original file line number Diff line number Diff line change
Expand Up @@ -2540,9 +2540,10 @@ gfanFunctions = hashTable {
gfanTropicalWeilDivisor => "gfan _tropicalweildivisor" -- v0.4
}

wrap' = (n, str) -> stack apply(lines str, wrap_n)
gfanHelp = functionStr -> PRE TT(
if gfanProgram === null then gfanProgram = findProgram("gfan", "gfan --help", RaiseError => false);
if gfanProgram =!= null then runGfanCommandCaptureError(functionStr, hashTable {"help" => true}, "") else {})
if gfanProgram =!= null then wrap'_100 runGfanCommandCaptureError(functionStr, hashTable {"help" => true}, "") else {})

doc ///
Key
Expand Down

0 comments on commit f25618d

Please sign in to comment.