mfiers / Moa

Lightweight workflows in bioinformatics:
http://moa.readthedocs.org
GNU General Public License v3.0
23 stars 10 forks source link

Entering titles #21

Open hdzierz opened 12 years ago

hdzierz commented 12 years ago

Moa lets you enter titles using white spaces. When attempting to run it complains about it. There should be a validation procedure that prevents you saving a title with spaces.

Cheers

Helge

BTW: I love moa :-)

mfiers commented 12 years ago

Never noticed it complaining about spaces in titles - can you give me an example?

hdzierz commented 12 years ago

Sorry, I thought I can set the title in the command line like this (which you can't and shouldn't):

moa set title "Filter Cymbidia ABYSS results"

moa interprets everything in the quotation marks as a variable to set. That is what it does not like because it correctly denies variables (not titles !) with spaces.

When you run moa you get also correctly this:

Error: Invalid parameter name - cannot contain spaces: Filter Cymbidia ABYSS results Error: Undefined variable: Filter Cymbidia ABYSS results

Don't know what you do about it or if you want to do something about it but it would be a typical thing to do for a command line hacker.

Cheers

Helge

mfiers commented 12 years ago

Ah - I see the confusion - that should have been:

moa set title="Filter Cymbidia ABYSS results"

otherwise "Filter Cymbidia ABYSS results" is interpreted as a variable name - which cannot have spaces

need to update the documentation