~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-05-07 06:39:47 UTC
  • mfrom: (5193.3.10 181124-ls-short-opts)
  • Revision ID: pqm@pqm.ubuntu.com-20100507063947-s3btnxxwxu0xzitt
(parthm, #181124) short options for commonly used ls long options.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2032
2032
 
2033
2033
    hidden = True
2034
2034
    _see_also = ['status', 'ls']
2035
 
    takes_options = ['directory',
2036
 
            Option('null',
2037
 
                   help='Write an ascii NUL (\\0) separator '
2038
 
                   'between files rather than a newline.')
2039
 
            ]
 
2035
    takes_options = ['directory', 'null']
2040
2036
 
2041
2037
    @display_command
2042
2038
    def run(self, null=False, directory=u'.'):
2055
2051
 
2056
2052
    hidden = True
2057
2053
    _see_also = ['status', 'ls']
2058
 
    takes_options = ['directory',
2059
 
            Option('null',
2060
 
                   help='Write an ascii NUL (\\0) separator '
2061
 
                   'between files rather than a newline.')
2062
 
            ]
 
2054
    takes_options = ['directory', 'null']
2063
2055
 
2064
2056
    @display_command
2065
2057
    def run(self, null=False, directory=u'.'):
2539
2531
                   help='Recurse into subdirectories.'),
2540
2532
            Option('from-root',
2541
2533
                   help='Print paths relative to the root of the branch.'),
2542
 
            Option('unknown', help='Print unknown files.'),
 
2534
            Option('unknown', short_name='u',
 
2535
                help='Print unknown files.'),
2543
2536
            Option('versioned', help='Print versioned files.',
2544
2537
                   short_name='V'),
2545
 
            Option('ignored', help='Print ignored files.'),
2546
 
            Option('null',
2547
 
                   help='Write an ascii NUL (\\0) separator '
2548
 
                   'between files rather than a newline.'),
2549
 
            Option('kind',
 
2538
            Option('ignored', short_name='i',
 
2539
                help='Print ignored files.'),
 
2540
            Option('kind', short_name='k',
2550
2541
                   help='List entries of a particular kind: file, directory, symlink.',
2551
2542
                   type=unicode),
 
2543
            'null',
2552
2544
            'show-ids',
2553
2545
            'directory',
2554
2546
            ]