Skip to content

arguments with spaces in the localised executables #14

Description

@padawin

When running the game with one of the localised executables, the arguments with spaces are considered as separated arguments:

> ./rRpg-english -w database/rpg.db -l foo -p foo drop 3 "Heavy breastplate"
Namespace(action=['drop', '3', 'Heavy', 'breastplate'], debug=False, json=False, login='foo', password='foo', world='database/rpg.db')
I have none of those

Must be:

> LC_MESSAGES=en_GB ./rRpg -w database/rpg.db -l foo -p foo drop 3 "Heavy breastplate"
Namespace(action=['drop', '3', 'Heavy breastplate'], debug=False, json=False, login='foo', password='foo', world='database/rpg.db')
You drop 3 Heavy breastplate

This comes from the sh files containing:

#!/bin/sh
LC_MESSAGES=en_GB ./rRpg $@

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions