Code Monkey home page Code Monkey logo

m_cli's People

Contributors

lkedward avatar urbanjost avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

lkedward

m_cli's Issues

Invalid TOML

Hi @urbanjost,
I'm doing some work (fortran-lang/fpm-registry#11) on the fpm-registry in order to get fpm packages listed on the website.

As part of this I've been parsing fpm.toml files from each package in the registry and I've noticed that M_CLI uses an invalid TOML syntax. Though Haskell fpm doesn't complain about this, it is causing some issues when parsing the TOML in Python.

According to the spec, there must be a newline after each key/value pair.
I believe the minimal syntax you are looking for can be achieved with inline tables, see here (scroll up slightly).

If I get time later, I can put together a pull request.

Ambiguity regarding how to pass an array of string

suppose:

CHARACTER(len=20) , DIMENSION(10) :: afuncs=""

and we have:

cmd = commandline('--afuncs "myfunc1","myfunc2","myfunc3"')

which perfectly assigns default values to afuncs(1),afuncs(2) and afuncs(3). The rest remain empty.
However, the same syntax does not work when calling from command line:

./myprogram --afuncs "thisfunc","thatfunc","thisfunc2"

This puts all of "thisfunc,thatfunc,thisfunc2" in afuncs(1). The rest remain as the default values. I have tested other combinations and cannot come up with a syntax to correctly assign each string to one cell on the command line.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.