Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Commit

Permalink
updated command line syntax to match pacman's
Browse files Browse the repository at this point in the history
  • Loading branch information
sollidsnake committed Jul 3, 2017
1 parent e59986e commit 55017c6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ You can also specify where you want the PKGBUILDs to be generated:
pipman MechanicalSoup pyrasite --target-dir=/tmp/
```

You can search for pip packages with the argument `-s`:
You can search for pip packages with the argument `-Ss`:
```
pipman -s sympy
pipman -Ss sympy
```

You can install the generated PKGBUILD automatically with the argument `-i`:
You can install the generated PKGBUILD automatically with the argument `-S`:
```
pipman -i sympy
pipman -S sympy
```

Check `pipman --help` for more features.
Expand Down
7 changes: 3 additions & 4 deletions src/pipman/pipman.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
-t <dir>, --target-dir <dir> Target dir [default: .].
-s Search for packages in pip's repository
-q Search for packages in pip's repository
-i Generate PKGBUILDs and call makepkg to install them
-S Generate PKGBUILDs and call makepkg to install them
Positional:
packages Packages to be generated
Expand Down Expand Up @@ -61,10 +61,9 @@ def search(args, quiet=False):
action = generate
quiet = False

if args['-s']:
if args['-S'] and args['-s']:
action = search

if args['-i']:
elif args['-S']:
action = install

if args['-q']:
Expand Down

0 comments on commit 55017c6

Please sign in to comment.