diff options
author | Martin Kelly <martin@surround.io> | 2016-03-07 12:24:51 -0800 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-03-08 09:32:22 +0200 |
commit | 4f891a7bfd477befc02849aa9d65b7a40e0bc266 (patch) | |
tree | f3c712fd3af353fc3455bf43dd38cdcf2989bb98 | |
parent | 25eaf73e57674b0ac733e3d0bd594f971578b75d (diff) |
commands/run: require an argument
Currently, doing "cerbero run" without any command to run results in a
no-op with no output. However, running "no command" doesn't make much
sense, so cerbero should probably show an error message instead.
https://bugzilla.gnome.org/show_bug.cgi?id=763276
-rw-r--r-- | cerbero/commands/runit.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cerbero/commands/runit.py b/cerbero/commands/runit.py index ec14d022..f7f059bc 100644 --- a/cerbero/commands/runit.py +++ b/cerbero/commands/runit.py @@ -27,7 +27,7 @@ class Run(Command): def __init__(self): Command.__init__(self, - [ArgparseArgument('cmd', nargs='*', + [ArgparseArgument('cmd', nargs='+', help=_('command to run')), ]) |