Merge lp:~ack/apt-btrfs-snapshot/fix-arg-parser into lp:apt-btrfs-snapshot
Proposed by
Alberto Donato
on 2017-08-09
| Status: | Needs review |
|---|---|
| Proposed branch: | lp:~ack/apt-btrfs-snapshot/fix-arg-parser |
| Merge into: | lp:apt-btrfs-snapshot |
| Diff against target: |
54 lines (+2/-10) 1 file modified
apt-btrfs-snapshot (+2/-10) |
| To merge this branch: | bzr merge lp:~ack/apt-btrfs-snapshot/fix-arg-parser |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Michael Vogt | 2017-08-09 | Approve on 2017-10-04 | |
|
Review via email:
|
|||
Description of the Change
This fixes the argparse setup not to error if no command is provided:
$ sudo apt-btrfs-snapshot
Traceback (most recent call last):
File "/usr/bin/
if args.command == "supported":
AttributeError: 'Namespace' object has no attribute 'command'
by setting the command parameter as required.
To post a comment you must log in.
| Alberto Donato (ack) wrote : | # |
@mvo can this be merged?
Unmerged revisions
- 55. By Alberto Donato on 2017-08-09
-
Fix ArgumentParser setup.

Looks great, thanks for working on this!