From cf76231b16453b51bbf8e14c8f29c3c5dfa599d2 Mon Sep 17 00:00:00 2001 From: Foo Date: Sun, 10 May 2015 17:44:38 +0300 Subject: [PATCH] Make `side` argument non-optional Closes #1294 --- powerline/commands/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerline/commands/main.py b/powerline/commands/main.py index 7a4751dc..df61f0d9 100644 --- a/powerline/commands/main.py +++ b/powerline/commands/main.py @@ -71,7 +71,7 @@ def get_argparser(ArgumentParser=argparse.ArgumentParser): '(usually `shell\' or `tmux\').' ) parser.add_argument( - 'side', nargs='?', choices=('left', 'right', 'above', 'aboveleft'), + 'side', nargs=1, choices=('left', 'right', 'above', 'aboveleft'), help='Side: `left\' and `right\' represent left and right side ' 'respectively, `above\' emits lines that are supposed to be printed ' 'just above the prompt and `aboveleft\' is like concatenating '