Comment 2 for bug 181124

Revision history for this message
Jari Aalto (jari-aalto) wrote : Re: [PATCH] short options for bzr ls

Thanks, here is initial patch.

Jari

 bzrlib/builtins.py | 16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/bzrlib/builtins.py b/bzrlib/builtins.py
index 43db91d..66317a4 100644
--- a/bzrlib/builtins.py
+++ b/bzrlib/builtins.py
@@ -1784,16 +1784,26 @@ class cmd_ls(Command):
             'verbose',
             'revision',
             Option('non-recursive',
+ short_name='n',
                    help='Don\'t recurse into subdirectories.'),
             Option('from-root',
+ short_name='l',
                    help='Print paths relative to the root of the branch.'),
- Option('unknown', help='Print unknown files.'),
- Option('versioned', help='Print versioned files.'),
- Option('ignored', help='Print ignored files.'),
+ Option('unknown',
+ short_name='u',
+ help='Print unknown files.'),
+ Option('versioned',
+ short_name='V',
+ help='Print versioned files.'),
+ Option('ignored',
+ short_name='i',
+ help='Print ignored files.'),
             Option('null',
+ short_name='0',
                    help='Write an ascii NUL (\\0) separator '
                    'between files rather than a newline.'),
             Option('kind',
+ short_name='k',
                    help='List entries of a particular kind: file, directory, symlink.',
                    type=unicode),
             'show-ids',