gleitz/howdoi — pull request #17 by rraval (2013-01-09 02:07:14+00:00)
Title: Use `argparse.REMAINDER` to collect query arguments

Essentially, it prevents argparse from parsing arguments after the first positional argument (the query in this case).

Use Case:
```
$ howdoi undo rm -rf
git reset HEAD@{1}
```

Pre-patch error:
```
$ howdoi undo rm -rf
usage: howdoi [-h] [-p POS] [-a] [-l] QUERY [QUERY ...]
howdoi: error: unrecognized arguments: -rf
```